Lines Matching refs:TESTDIR
95 static char *TESTDIR = NULL; /* the directory created */ variable
106 return TESTDIR != NULL; in tst_tmpdir_created()
113 if (TESTDIR == NULL) { in tst_get_tmpdir()
118 ret = strdup(TESTDIR); in tst_get_tmpdir()
281 if ((TESTDIR = strdup(template)) == NULL) { in tst_tmpdir()
287 SAFE_CHOWN(NULL, TESTDIR, -1, getgid()); in tst_tmpdir()
289 SAFE_CHMOD(NULL, TESTDIR, DIR_MODE); in tst_tmpdir()
302 if (chdir(TESTDIR) == -1) { in tst_tmpdir()
303 tst_resm(TERRNO, "%s: chdir(%s) failed", __func__, TESTDIR); in tst_tmpdir()
306 if (rmobj(TESTDIR, &errmsg) == -1) { in tst_tmpdir()
308 __func__, TESTDIR, errmsg); in tst_tmpdir()
322 if (TESTDIR == NULL) { in tst_rmdir()
341 if (rmobj(TESTDIR, &errmsg) == -1) { in tst_rmdir()
343 __func__, TESTDIR, errmsg); in tst_rmdir()