Lines Matching refs:TESTDIR
95 static char *TESTDIR = NULL; /* the directory created */ variable
104 return TESTDIR != NULL; in tst_tmpdir_created()
109 if (TESTDIR == NULL) { in tst_get_tmpdir()
114 return strdup(TESTDIR); in tst_get_tmpdir()
268 if ((TESTDIR = strdup(template)) == NULL) { in tst_tmpdir()
274 SAFE_CHOWN(NULL, TESTDIR, -1, getgid()); in tst_tmpdir()
276 SAFE_CHMOD(NULL, TESTDIR, DIR_MODE); in tst_tmpdir()
289 if (chdir(TESTDIR) == -1) { in tst_tmpdir()
290 tst_resm(TERRNO, "%s: chdir(%s) failed", __func__, TESTDIR); in tst_tmpdir()
293 if (rmobj(TESTDIR, &errmsg) == -1) { in tst_tmpdir()
295 __func__, TESTDIR, errmsg); in tst_tmpdir()
309 if (TESTDIR == NULL) { in tst_rmdir()
328 if (rmobj(TESTDIR, &errmsg) == -1) { in tst_rmdir()
330 __func__, TESTDIR, errmsg); in tst_rmdir()