|
@@ -30,11 +30,11 @@ int do_test(char *(*func)(char *tmpl))
|
|
|
|
|
|
path = starpu_getenv("TMPDIR");
|
|
|
if (!path)
|
|
|
- path = "/tmp";
|
|
|
- if (!path)
|
|
|
path = starpu_getenv("TEMP");
|
|
|
if (!path)
|
|
|
path = starpu_getenv("TMP");
|
|
|
+ if (!path)
|
|
|
+ path = "/tmp";
|
|
|
snprintf(dirname, 128, "%s/abcdef_XXXXXX", path);
|
|
|
ptr = func(dirname);
|
|
|
FPRINTF(stderr, "Directory '%s' (res '%s')\n", dirname, ptr);
|