[Pkg-javascript-commits] [uglifyjs] 147/190: Fix regression causing tests to fail on windows

Antonio Terceiro terceiro at moszumanska.debian.org
Sun Aug 7 23:17:21 UTC 2016


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to annotated tag upstream/2.7.0
in repository uglifyjs.

commit 6641dcafb60091f0f944fcd5269ca67cb66ada2a
Author: Anthony Van de Gejuchte <anthonyvdgent at gmail.com>
Date:   Tue May 3 17:41:40 2016 +0200

    Fix regression causing tests to fail on windows
---
 test/run-tests.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/test/run-tests.js b/test/run-tests.js
index 763575a..0a249b9 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,

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git



More information about the Pkg-javascript-commits mailing list