Index: test/mjsunit/d8-os.js |
diff --git a/test/mjsunit/d8-os.js b/test/mjsunit/d8-os.js |
index fd6fb774ea77075d73111d2b707a456be0a19acf..5640326856b9a11562078db3cd80f92203a4a988 100644 |
--- a/test/mjsunit/d8-os.js |
+++ b/test/mjsunit/d8-os.js |
@@ -30,7 +30,7 @@ |
// implemented on Windows, and even if it were then many of the things |
// we are calling would not be available. |
-var TEST_DIR = "d8-os-test-directory-" + ((Math.random() * (1<<30)) | 0); |
+var TEST_DIR = "/tmp/d8-os-test-directory-" + ((Math.random() * (1<<30)) | 0); |
function arg_error(str) { |
@@ -64,7 +64,7 @@ if (this.os && os.system) { |
os.chdir(TEST_DIR); |
try { |
// Check the chdir worked. |
- os.system('ls', ['../' + TEST_DIR]); |
+ os.system('ls', [TEST_DIR]); |
// Simple create dir. |
os.mkdirp("dir"); |
// Create dir in dir. |
@@ -144,7 +144,6 @@ if (this.os && os.system) { |
//} |
} |
} finally { |
- os.chdir(".."); |
os.system("rm", ["-r", TEST_DIR]); |
} |