Index: test/mjsunit/testcfg.py |
diff --git a/test/mjsunit/testcfg.py b/test/mjsunit/testcfg.py |
index c8b972c12f973e2425b3529a51bb615da44cfd45..00d4500f1c5e1bed10b9eef62a7b32fd2f529e8c 100644 |
--- a/test/mjsunit/testcfg.py |
+++ b/test/mjsunit/testcfg.py |
@@ -75,7 +75,7 @@ class MjsunitTestSuite(testsuite.TestSuite): |
for f in files_list ] |
testfilename = os.path.join(self.root, testcase.path + self.suffix()) |
if SELF_SCRIPT_PATTERN.search(source): |
- env = ["-e", "TEST_FILE_NAME=\"%s\"" % testfilename] |
+ env = ["-e", "TEST_FILE_NAME=\"%s\"" % testfilename.replace("\\", "\\\\")] |
files = env + files |
files.append(os.path.join(self.root, "mjsunit.js")) |
files.append(testfilename) |