]> granicus.if.org Git - re2c/commitdiff
run_tests.sh: ignore trailing whitespace in test diffs if compiler name matches ...
authorUlya Trofimovich <skvadrik@gmail.com>
Tue, 19 Feb 2019 17:52:36 +0000 (17:52 +0000)
committerUlya Trofimovich <skvadrik@gmail.com>
Tue, 19 Feb 2019 17:52:36 +0000 (17:52 +0000)
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.

re2c/run_tests.sh.in

index cfa738988375380cf9510b2ef4b0b83d72dbf07a..393c01fc301725bda629da3df3bc10a7752f08a6 100644 (file)
@@ -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"