Lines Matching refs:test

81 	int orgfd, fd1, fd2, test = 0;
90 printf("ok %d - dup(2) works\n", ++test);
99 printf("ok %d - dup2(2) works\n", ++test);
102 ++test;
105 test);
107 printf("ok %d - dup2(2) returned a correct fd\n", test);
110 ++test;
113 test);
115 printf("ok %d - dup2(2) cleared close-on-exec\n", test);
136 * the way it is supposed to be and test here that it really
145 printf("ok %d - dup2(2) to itself works\n", ++test);
148 ++test;
151 test);
154 test);
157 ++test;
159 printf("not ok %d - dup2(2) cleared close-on-exec\n", test);
161 printf("ok %d - dup2(2) didn't clear close-on-exec\n", test);
168 ++test, fd2);
170 printf("ok %d - fcntl(F_DUPFD) works\n", ++test);
173 ++test;
177 test);
179 printf("ok %d - fcntl(F_DUPFD) cleared close-on-exec\n", test);
181 ++test;
185 printf("not ok %d - dup2(2) bypassed NOFILE limit\n", test);
187 printf("ok %d - dup2(2) didn't bypass NOFILE limit\n", test);
192 printf("ok %d - fcntl(F_DUP2FD) works\n", ++test);
195 ++test;
199 test);
202 test);
205 ++test;
209 test);
212 test);
217 printf("ok %d - fcntl(F_DUP2FD) to itself works\n", ++test);
220 ++test;
224 test);
228 test);
231 ++test;
234 test);
237 test);
239 ++test;
244 test);
247 test);
254 ++test, fd2);
256 printf("ok %d - fcntl(F_DUPFD_CLOEXEC) works\n", ++test);
259 ++test;
263 test);
266 test);
271 printf("ok %d - fcntl(F_DUP2FD_CLOEXEC) works\n", ++test);
274 ++test;
278 test);
281 test);
284 ++test;
288 test);
291 test);
298 ++test;
303 test);
306 test);
311 printf("ok %d - dup3(O_CLOEXEC) works\n", ++test);
314 ++test;
318 test);
321 test);
324 ++test;
328 test);
331 test);
336 printf("ok %d - dup3(0) works\n", ++test);
339 ++test;
343 test);
346 test);
349 ++test;
353 test);
356 test);
359 ++test;
362 "not ok %d - dup3(fd1, fd1, O_CLOEXEC) succeeded\n", test);
364 printf("ok %d - dup3(fd1, fd1, O_CLOEXEC) failed\n", test);
366 ++test;
369 "not ok %d - dup3(fd1, fd1, 0) succeeded\n", test);
371 printf("ok %d - dup3(fd1, fd1, 0) failed\n", test);
373 ++test;
378 test);
381 test);