Lines Matching refs:test

83 	int orgfd, fd1, fd2, test = 0;
92 printf("ok %d - dup(2) works\n", ++test);
101 printf("ok %d - dup2(2) works\n", ++test);
104 ++test;
107 test);
109 printf("ok %d - dup2(2) returned a correct fd\n", test);
112 ++test;
115 test);
117 printf("ok %d - dup2(2) cleared close-on-exec\n", test);
138 * the way it is supposed to be and test here that it really
147 printf("ok %d - dup2(2) to itself works\n", ++test);
150 ++test;
153 test);
156 test);
159 ++test;
161 printf("not ok %d - dup2(2) cleared close-on-exec\n", test);
163 printf("ok %d - dup2(2) didn't clear close-on-exec\n", test);
170 ++test, fd2);
172 printf("ok %d - fcntl(F_DUPFD) works\n", ++test);
175 ++test;
179 test);
181 printf("ok %d - fcntl(F_DUPFD) cleared close-on-exec\n", test);
183 ++test;
187 printf("not ok %d - dup2(2) bypassed NOFILE limit\n", test);
189 printf("ok %d - dup2(2) didn't bypass NOFILE limit\n", test);
194 printf("ok %d - fcntl(F_DUP2FD) works\n", ++test);
197 ++test;
201 test);
204 test);
207 ++test;
211 test);
214 test);
219 printf("ok %d - fcntl(F_DUP2FD) to itself works\n", ++test);
222 ++test;
226 test);
230 test);
233 ++test;
236 test);
239 test);
241 ++test;
246 test);
249 test);
256 ++test, fd2);
258 printf("ok %d - fcntl(F_DUPFD_CLOEXEC) works\n", ++test);
261 ++test;
265 test);
268 test);
273 printf("ok %d - fcntl(F_DUP2FD_CLOEXEC) works\n", ++test);
276 ++test;
280 test);
283 test);
286 ++test;
290 test);
293 test);
300 ++test;
305 test);
308 test);
313 printf("ok %d - dup3(O_CLOEXEC) works\n", ++test);
316 ++test;
320 test);
323 test);
326 ++test;
330 test);
333 test);
338 printf("ok %d - dup3(0) works\n", ++test);
341 ++test;
345 test);
348 test);
351 ++test;
355 test);
358 test);
361 ++test;
364 "not ok %d - dup3(fd1, fd1, O_CLOEXEC) succeeded\n", test);
366 printf("ok %d - dup3(fd1, fd1, O_CLOEXEC) failed\n", test);
368 ++test;
371 "not ok %d - dup3(fd1, fd1, 0) succeeded\n", test);
373 printf("ok %d - dup3(fd1, fd1, 0) failed\n", test);
375 ++test;
380 test);
383 test);