diff options
Diffstat (limited to 'tests/gdtest')
-rw-r--r-- | tests/gdtest/gdtest.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/gdtest/gdtest.c b/tests/gdtest/gdtest.c index e2a2582..0ce9da9 100644 --- a/tests/gdtest/gdtest.c +++ b/tests/gdtest/gdtest.c @@ -301,13 +301,9 @@ const char *gdTestTempDir(void) // Mingw defines it tmpdir_root = getenv("TMP"); if (tmpdir_root == NULL) { -#if defined(__MINGW32__) || defined(__MINGW64__) - // On MingW it seems we fail too often. Let default to this and create it ourselves - tmpdir_root = "./tmp"; - if (!gdTestIsDir(tmpdir_root) && mkdir(tmpdir_root) == 0) { -#else - if (!gdTestIsDir(tmpdir_root) && mkdir(tmpdir_root, 0700) == 0) { -#endif + // Fall back here. + tmpdir_root = "/tmp"; + if (!gdTestIsDir(tmpdir_root)) { printf("tmpdir failed to be used or initialized (%s).", tmpdir_root); exit(2); } |