From ca58a200a09e7e9a1a1a0e591b83cb8e544b463d Mon Sep 17 00:00:00 2001 From: kzc Date: Tue, 3 May 2016 10:22:32 -0400 Subject: [PATCH] Replace "/" with path.sep in test harness to support Windows. --- test/run-tests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/run-tests.js b/test/run-tests.js index 763575aa..af8b1842 100755 --- a/test/run-tests.js +++ b/test/run-tests.js @@ -133,7 +133,7 @@ function run_compress_tests() { quote_style: 2, // force double quote to match JSON }); var actual_warnings = JSON.stringify(warnings_emitted); - actual_warnings = actual_warnings.split(process.cwd() + "/").join(""); + actual_warnings = actual_warnings.split(process.cwd() + path.sep).join(""); if (expected_warnings != actual_warnings) { log("!!! failed\n---INPUT---\n{input}\n---EXPECTED WARNINGS---\n{expected_warnings}\n---ACTUAL WARNINGS---\n{actual_warnings}\n\n", { input: input_code,