Lines Matching refs:TESTDIR
94 static char *TESTDIR = NULL; /* the directory created */ variable
103 return TESTDIR != NULL; in tst_tmpdir_created()
108 if (TESTDIR == NULL) { in tst_get_tmpdir()
113 return strdup(TESTDIR); in tst_get_tmpdir()
267 if ((TESTDIR = strdup(template)) == NULL) { in tst_tmpdir()
273 if (chown(TESTDIR, -1, getgid()) == -1) { in tst_tmpdir()
275 "chown(%s, -1, %d) failed", TESTDIR, getgid()); in tst_tmpdir()
279 if (chmod(TESTDIR, DIR_MODE) == -1) { in tst_tmpdir()
281 "chmod(%s, %#o) failed", TESTDIR, DIR_MODE); in tst_tmpdir()
296 if (chdir(TESTDIR) == -1) { in tst_tmpdir()
297 tst_resm(TERRNO, "%s: chdir(%s) failed", __func__, TESTDIR); in tst_tmpdir()
300 if (rmobj(TESTDIR, &errmsg) == -1) { in tst_tmpdir()
302 __func__, TESTDIR, errmsg); in tst_tmpdir()
316 if (TESTDIR == NULL) { in tst_rmdir()
335 if (rmobj(TESTDIR, &errmsg) == -1) { in tst_rmdir()
337 __func__, TESTDIR, errmsg); in tst_rmdir()