From: Ulya Trofimovich Date: Tue, 19 Feb 2019 17:52:36 +0000 (+0000) Subject: run_tests.sh: ignore trailing whitespace in test diffs if compiler name matches ... X-Git-Tag: 1.2~147 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=62d3c51b700c24f825632eae587c64557bb71b93;p=re2c run_tests.sh: ignore trailing whitespace in test diffs if compiler name matches "mingw". We already ignore trailing whitespace when running in Wine, but binaries that built with Mingw and run on windows (not in Wine) also need this option. --- diff --git a/re2c/run_tests.sh.in b/re2c/run_tests.sh.in index cfa73898..393c01fc 100644 --- a/re2c/run_tests.sh.in +++ b/re2c/run_tests.sh.in @@ -114,7 +114,7 @@ then fi diff_prog="diff" -if test -n "${wine}" +if [[ @CC@ =~ "mingw" || -n "${wine}" ]] then # ignore whitespace at the end of line diff_prog="${diff_prog} -b"