Lines Matching refs:testdir
45 char *testdir; in do_test() local
93 testdir = strdup (buf); in do_test()
94 if (testdir == NULL) in do_test()
97 if (stat64 (testdir, &st1) != 0) in do_test()
112 if (chmod (testdir, 0) != 0) in do_test()
119 if (stat64 (testdir, &st2) != 0) in do_test()
140 snprintf (buf, buflen, "%s/file", testdir); in do_test()
162 if (chmod (testdir, 0600) != 0) in do_test()
187 dir = opendir (testdir); in do_test()
205 if (chmod (testdir, 0700) != 0) in do_test()
231 snprintf (buf, buflen, "%s/..", testdir); in do_test()
238 basename (testdir), basename (testdir)); in do_test()
245 snprintf (buf, buflen, "./%s//file", basename (testdir)); in do_test()
279 if (chmod (basename (testdir), 0777 | S_ISUID | S_ISGID | S_ISVTX) != 0) in do_test()
285 if (stat64 (basename (testdir), &st2) != 0) in do_test()
296 snprintf (buf, buflen, "./%s/no-such-file", basename (testdir)); in do_test()
308 snprintf (buf, buflen, "%s/", basename (testdir)); in do_test()
309 if (chmod (basename (testdir), 0677) != 0) in do_test()
316 snprintf (buf, buflen, "./%s/file", basename (testdir)); in do_test()
332 if (chmod (basename (testdir), 0777) != 0) in do_test()
339 snprintf (buf, buflen, "%s/file/cannot-be", basename (testdir)); in do_test()
355 chmod (testdir, 0700); in do_test()
361 rmdir (testdir); in do_test()
365 free (testdir); in do_test()