Revision: 9154
Author: [email protected]
Date: Tue Sep 6 07:48:08 2011
Log: Put test directories of d8-os tests into /tmp/.
Review URL: http://codereview.chromium.org/7835040
http://code.google.com/p/v8/source/detail?r=9154
Modified:
/branches/bleeding_edge/src/d8.cc
/branches/bleeding_edge/test/mjsunit/d8-os.js
=======================================
--- /branches/bleeding_edge/src/d8.cc Tue Sep 6 02:07:39 2011
+++ /branches/bleeding_edge/src/d8.cc Tue Sep 6 07:48:08 2011
@@ -683,7 +683,7 @@
global_template->Set(String::New("lol_is_enabled"), False());
#endif
-#ifndef V8_SHARED
+#if !defined(V8_SHARED) && !defined(_WIN32) && !defined(_WIN64)
Handle<ObjectTemplate> os_templ = ObjectTemplate::New();
AddOSMethods(os_templ);
global_template->Set(String::New("os"), os_templ);
=======================================
--- /branches/bleeding_edge/test/mjsunit/d8-os.js Fri Aug 5 06:34:46 2011
+++ /branches/bleeding_edge/test/mjsunit/d8-os.js Tue Sep 6 07:48:08 2011
@@ -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 @@
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 @@
//}
}
} finally {
- os.chdir("..");
os.system("rm", ["-r", TEST_DIR]);
}
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev