From eb58cfee715b0af57417683227f5c251b3198a13 Mon Sep 17 00:00:00 2001 From: Ulya Trofimovich Date: Fri, 29 Apr 2016 08:16:12 +0100 Subject: [PATCH] Fixed #141 "Tests under Windows". Thanks to Abs62, who noted that under Windows (in MSYS) tests fail because '2>"$outc.stderr"' dumps CRLF to file instead of LF and proposed a fix: sed -i 's/\r//g' "$outc.stderr" --- re2c/run_tests.sh.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/re2c/run_tests.sh.in b/re2c/run_tests.sh.in index 700edf22..19ada28d 100644 --- a/re2c/run_tests.sh.in +++ b/re2c/run_tests.sh.in @@ -173,6 +173,8 @@ run_pack() { && cp "../../$x" "$outx" # run re2c $valgrind $wine ../../$re2c $switches "$outx" 2>"$outc.stderr" 1>&2 + # on windows stdout and stderr contain CR LF, cut CR to match test results + sed -i 's/\r//g' "$outc.stderr" # paste all files dropped by re2c into output file rm "$outx" && find . -type f \ | lc_run sort \ -- 2.40.0