From: Anthony Van de Gejuchte Date: Tue, 3 May 2016 15:41:40 +0000 (+0200) Subject: Fix regression causing tests to fail on windows X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=6641dcafb60091f0f944fcd5269ca67cb66ada2a;p=UglifyJS.git Fix regression causing tests to fail on windows --- diff --git a/test/run-tests.js b/test/run-tests.js index 763575aa..0a249b9f 100755 --- a/test/run-tests.js +++ b/test/run-tests.js @@ -132,8 +132,10 @@ function run_compress_tests() { beautify: false, quote_style: 2, // force double quote to match JSON }); + warnings_emitted = warnings_emitted.map(function(input) { + return input.split(process.cwd() + path.sep).join("").split(path.sep).join("/"); + }); var actual_warnings = JSON.stringify(warnings_emitted); - actual_warnings = actual_warnings.split(process.cwd() + "/").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,