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