Home
last modified time | relevance | path

Searched refs:testno (Results 1 – 25 of 48) sorted by relevance

12

/third_party/ltp/testcases/kernel/syscalls/sockioctl/
Dsockioctl01.c46 int testno; variable
131 for (testno = 0; testno < TST_TOTAL; ++testno) { in main()
132 tdat[testno].setup(); in main()
134 TEST(ioctl(s, tdat[testno].cmd, tdat[testno].arg)); in main()
135 if (TEST_RETURN != tdat[testno].retval || in main()
137 TEST_ERRNO != tdat[testno].experrno)) { in main()
140 " %d)", tdat[testno].desc, in main()
141 TEST_RETURN, tdat[testno].retval, in main()
142 TEST_ERRNO, tdat[testno].experrno); in main()
145 tdat[testno].desc); in main()
[all …]
/third_party/ltp/testcases/kernel/syscalls/listen/
Dlisten01.c59 int testno; variable
95 for (testno = 0; testno < TST_TOTAL; ++testno) { in main()
96 tdat[testno].setup(); in main()
98 TEST(listen(s, tdat[testno].backlog)); in main()
99 if (TEST_RETURN != tdat[testno].retval || in main()
101 TEST_ERRNO != tdat[testno].experrno)) { in main()
104 " %d)", tdat[testno].desc, in main()
105 TEST_RETURN, tdat[testno].retval, in main()
106 TEST_ERRNO, tdat[testno].experrno); in main()
109 tdat[testno].desc); in main()
[all …]
/third_party/ltp/testcases/kernel/syscalls/getsockname/
Dgetsockname01.c58 int testno; variable
115 for (testno = 0; testno < TST_TOTAL; ++testno) { in main()
116 tdat[testno].setup(); in main()
118 TEST(getsockname(s, tdat[testno].sockaddr, in main()
119 tdat[testno].salen)); in main()
120 if (TEST_RETURN != tdat[testno].retval || in main()
122 TEST_ERRNO != tdat[testno].experrno)) { in main()
125 " %d)", tdat[testno].desc, in main()
126 TEST_RETURN, tdat[testno].retval, in main()
127 TEST_ERRNO, tdat[testno].experrno); in main()
[all …]
/third_party/ltp/testcases/kernel/syscalls/getsockopt/
Dgetsockopt01.c58 int testno; variable
140 for (testno = 0; testno < TST_TOTAL; ++testno) { in main()
141 tdat[testno].setup(); in main()
143 TEST(getsockopt(s, tdat[testno].level, in main()
144 tdat[testno].optname, in main()
145 tdat[testno].optval, in main()
146 tdat[testno].optlen)); in main()
147 if (TEST_RETURN != tdat[testno].retval || in main()
149 TEST_ERRNO != tdat[testno].experrno)) { in main()
152 " %d)", tdat[testno].desc, in main()
[all …]
/third_party/ltp/testcases/kernel/syscalls/syslog/
Dsyslog12.c99 static int testno; variable
125 " for %s", tdat[testno].desc); in timeout()
147 for (testno = 0; testno < TST_TOTAL; ++testno) { in main()
149 if (tdat[testno].setup && tdat[testno].setup()) { in main()
156 TEST(syslog(tdat[testno].type, tdat[testno].buf, in main()
157 tdat[testno].len)); in main()
164 (TEST_ERRNO == tdat[testno].exp_errno)) { in main()
167 tdat[testno].desc, TEST_ERRNO); in main()
172 " %d)", tdat[testno].desc, in main()
174 tdat[testno].exp_errno); in main()
[all …]
Dsyslog11.c88 static int testno; variable
130 for (testno = 0; testno < TST_TOTAL; ++testno) { in main()
132 if (tdat[testno].setup && tdat[testno].setup()) { in main()
137 TEST(syslog(tdat[testno].type, tdat[testno].buf, in main()
138 tdat[testno].len)); in main()
144 tdat[testno].desc); in main()
148 "%d (%s)", tdat[testno].desc, in main()
153 tdat[testno].desc); in main()
156 if (tdat[testno].cleanup) { in main()
157 tdat[testno].cleanup(); in main()
/third_party/ltp/testcases/kernel/syscalls/recvfrom/
Drecvfrom01.c59 int testno; variable
148 for (testno = 0; testno < TST_TOTAL; ++testno) { in main()
150 && (tdat[testno].flags & MSG_ERRQUEUE) in main()
151 && (tdat[testno].type & SOCK_STREAM)) { in main()
157 tdat[testno].setup(); in main()
158 TEST(recvfrom(s, tdat[testno].buf, tdat[testno].buflen, in main()
159 tdat[testno].flags, tdat[testno].from, in main()
160 tdat[testno].salen)); in main()
163 if (TEST_RETURN != tdat[testno].retval || in main()
165 TEST_ERRNO != tdat[testno].experrno)) { in main()
[all …]
/third_party/ltp/testcases/kernel/syscalls/recv/
Drecv01.c59 int testno; variable
126 for (testno = 0; testno < TST_TOTAL; ++testno) { in main()
128 && (tdat[testno].flags & MSG_ERRQUEUE) in main()
129 && (tdat[testno].type & SOCK_STREAM)) { in main()
135 tdat[testno].setup(); in main()
136 TEST(recv(s, tdat[testno].buf, tdat[testno].buflen, in main()
137 tdat[testno].flags)); in main()
140 if (TEST_RETURN != tdat[testno].retval || in main()
142 TEST_ERRNO != tdat[testno].experrno)) { in main()
145 " %d)", tdat[testno].desc, in main()
[all …]
/third_party/ltp/testcases/kernel/syscalls/fdatasync/
Dfdatasync02.c93 static int testno; variable
121 for (testno = 0; testno < TST_TOTAL; ++testno) { in main()
122 if ((tdat[testno].setup) && (tdat[testno].setup())) { in main()
130 (TEST_ERRNO == tdat[testno].experrno)) { in main()
132 "errno: %d", tdat[testno].desc, in main()
137 "(expected %d)", tdat[testno].desc, in main()
139 TEST_ERRNO, tdat[testno].experrno); in main()
141 if (tdat[testno].cleanup) { in main()
142 tdat[testno].cleanup(); in main()
/third_party/ltp/testcases/kernel/syscalls/sendto/
Dsendto01.c47 int testno; variable
336 for (testno = 0; testno < TST_TOTAL; ++testno) { in main()
337 tdat[testno].setup(); in main()
339 TEST(sendto(s, tdat[testno].buf, tdat[testno].buflen, in main()
340 tdat[testno].flags, in main()
341 (const struct sockaddr *)tdat[testno].to, in main()
342 tdat[testno].tolen)); in main()
347 if (TEST_RETURN != tdat[testno].retval || in main()
349 TEST_ERRNO != tdat[testno].experrno)) { in main()
352 " %d)", tdat[testno].desc, in main()
[all …]
/third_party/ltp/testcases/kernel/syscalls/setresgid/
Dsetresgid01.c94 static int testno; variable
130 for (testno = 0; testno < TST_TOTAL; ++testno) { in main()
132 TEST(SETRESGID(cleanup, *tdat[testno].rgid, *tdat[testno].egid, in main()
133 *tdat[testno].sgid)); in main()
137 (tdat[testno].exp_rgid->pw_gid, in main()
138 tdat[testno].exp_egid->pw_gid, in main()
139 tdat[testno].exp_sgid->pw_gid)) { in main()
143 tdat[testno].desc); in main()
147 tdat[testno].desc); in main()
152 " 0)", tdat[testno].desc, in main()
/third_party/ltp/testcases/kernel/syscalls/recvmsg/
Drecvmsg01.c62 int testno; variable
203 for (testno = 0; testno < TST_TOTAL; ++testno) { in main()
205 && (tdat[testno].flags & MSG_ERRQUEUE) in main()
206 && (tdat[testno].type & SOCK_STREAM)) { in main()
212 tdat[testno].setup(); in main()
215 iov[0].iov_base = tdat[testno].buf; in main()
216 iov[0].iov_len = tdat[testno].buflen; in main()
217 msgdat.msg_name = tdat[testno].from; in main()
218 msgdat.msg_namelen = tdat[testno].fromlen; in main()
219 msgdat.msg_iov = tdat[testno].iov; in main()
[all …]
/third_party/ltp/testcases/kernel/syscalls/send/
Dsend01.c48 int testno; variable
267 for (testno = 0; testno < TST_TOTAL; ++testno) { in main()
268 tdat[testno].setup(); in main()
270 TEST(send(s, tdat[testno].buf, tdat[testno].buflen, in main()
271 tdat[testno].flags)); in main()
278 if (TEST_ERRNO != tdat[testno].experrno) { in main()
281 " %d)", tdat[testno].desc, in main()
282 TEST_RETURN, tdat[testno].retval, in main()
283 TEST_ERRNO, tdat[testno].experrno); in main()
286 tdat[testno].desc); in main()
[all …]
/third_party/ltp/testcases/kernel/syscalls/connect/
Dconnect01.c59 int testno; variable
151 for (testno = 0; testno < TST_TOTAL; ++testno) { in main()
152 tdat[testno].setup(); in main()
155 (s, tdat[testno].sockaddr, tdat[testno].salen)); in main()
157 if (TEST_RETURN != tdat[testno].retval || in main()
159 TEST_ERRNO != tdat[testno].experrno)) { in main()
162 " %d)", tdat[testno].desc, in main()
163 TEST_RETURN, tdat[testno].retval, in main()
164 TEST_ERRNO, tdat[testno].experrno); in main()
167 tdat[testno].desc); in main()
[all …]
/third_party/ltp/testcases/kernel/syscalls/sendmsg/
Dsendmsg01.c54 int testno; variable
380 for (testno = 0; testno < TST_TOTAL; ++testno) { in main()
381 tdat[testno].setup(); in main()
383 iov[0].iov_base = tdat[testno].buf; in main()
384 iov[0].iov_len = tdat[testno].buflen; in main()
385 if (tdat[testno].type != SOCK_STREAM) { in main()
386 msgdat.msg_name = tdat[testno].to; in main()
387 msgdat.msg_namelen = tdat[testno].tolen; in main()
389 msgdat.msg_iov = tdat[testno].iov; in main()
390 msgdat.msg_iovlen = tdat[testno].iovcnt; in main()
[all …]
/third_party/curl/tests/
Dftpserver.pl86 my $testno = 0; # test case number (read from ftpserver.cmd)
909 my $testno = $smtp_client;
910 my $filename = "log/upload.$testno";
912 logmsg "Store test number $testno in $filename\n";
1257 my $testno = $mailbox;
1258 my $filename = "log/upload.$testno";
1260 logmsg "Store test number $testno in $filename\n";
2159 my $testno = $_[0];
2161 if ($testno > 10000) {
2162 $testpart = $testno % 10000;
[all …]
/third_party/curl/tests/server/
Dsws.c102 long testno; /* test number found in the request */ member
247 req->testno = testnum; in parse_cmdfile()
261 stream = test2fopen(req->testno); in parse_servercmd()
268 logmsg(" Couldn't open test file %ld", req->testno); in parse_servercmd()
375 (req->testno == DOCNUMBER_NOTHING) && in ProcessRequest()
378 req->testno = DOCNUMBER_WERULEZ; in ProcessRequest()
382 else if((req->testno == DOCNUMBER_NOTHING) && in ProcessRequest()
408 req->testno = DOCNUMBER_WERULEZ; in ProcessRequest()
414 req->testno = DOCNUMBER_QUIT; in ProcessRequest()
424 req->testno = strtol(ptr, &ptr, 10); in ProcessRequest()
[all …]
Drtspd.c101 long testno; /* test number found in the request */ member
215 req->testno, line); in ProcessRequest()
219 if((req->testno == DOCNUMBER_NOTHING) && in ProcessRequest()
260 req->testno = DOCNUMBER_WERULEZ; in ProcessRequest()
266 req->testno = DOCNUMBER_QUIT; in ProcessRequest()
276 req->testno = strtol(ptr, &ptr, 10); in ProcessRequest()
278 if(req->testno > 10000) { in ProcessRequest()
279 req->partno = req->testno % 10000; in ProcessRequest()
280 req->testno /= 10000; in ProcessRequest()
286 req->testno, req->partno); in ProcessRequest()
[all …]
/third_party/ltp/testcases/kernel/syscalls/mremap/
Dmremap05.c217 int lc, testno; in main() local
224 for (testno = 0; testno < TST_TOTAL; testno++) { in main()
225 tdat[testno].setup(&tdat[testno]); in main()
226 test_mremap(&tdat[testno]); in main()
227 tdat[testno].cleanup(&tdat[testno]); in main()
/third_party/ltp/testcases/kernel/syscalls/set_tid_address/
Dset_tid_address01.c48 int testno; variable
114 for (testno = 0; testno < TST_TOTAL; ++testno) { in main()
/third_party/ltp/testcases/kernel/syscalls/ssetmask/
Dssetmask01.c50 int testno; variable
114 for (testno = 0; testno < TST_TOTAL; ++testno) { in main()
/third_party/ltp/testcases/kernel/syscalls/sgetmask/
Dsgetmask01.c59 int testno; variable
125 for (testno = 0; testno < TST_TOTAL; ++testno) { in main()
/third_party/ltp/testcases/kernel/syscalls/inotify_init/
Dinotify_init1_02.c65 int testno; variable
134 for (testno = 0; testno < TST_TOTAL; ++testno) { in main()
Dinotify_init1_01.c68 int testno; variable
137 for (testno = 0; testno < TST_TOTAL; ++testno) { in main()
/third_party/ltp/testcases/kernel/syscalls/timerfd/
Dtimerfd02.c70 int testno; variable
139 for (testno = 0; testno < TST_TOTAL; ++testno) { in main()

12