summaryrefslogtreecommitdiffstats
path: root/nsprpub/pr/tests/testfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'nsprpub/pr/tests/testfile.c')
-rw-r--r--nsprpub/pr/tests/testfile.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/nsprpub/pr/tests/testfile.c b/nsprpub/pr/tests/testfile.c
index 99cf94ddd..79d8a05f9 100644
--- a/nsprpub/pr/tests/testfile.c
+++ b/nsprpub/pr/tests/testfile.c
@@ -17,6 +17,10 @@
#include <pthread.h>
#endif
+#if defined(XP_UNIX)
+#include <unistd.h>
+#endif
+
#if defined(XP_OS2)
#define INCL_DOSFILEMGR
#include <os2.h>
@@ -71,7 +75,7 @@ char *TEST_DIR = "C:\\temp\\prdir";
char *FILE_NAME = "pr_testfile";
char *HIDDEN_FILE_NAME = "hidden_pr_testfile";
#else
-char *TEST_DIR = "/tmp/testfile_dir";
+char *TEST_DIR = "./tmp-testfile_dir";
char *FILE_NAME = "pr_testfile";
char *HIDDEN_FILE_NAME = ".hidden_pr_testfile";
#endif