From: Ulya Trofimovich Date: Wed, 6 Mar 2019 12:15:48 +0000 (+0000) Subject: run_tests.sh: ignore difference in trailing whitespace with --wine option. X-Git-Tag: 1.2~110 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5fd969a7170fa2f46be310310de29b92c020a874;p=re2c run_tests.sh: ignore difference in trailing whitespace with --wine option. --- diff --git a/re2c/run_tests.sh.in b/re2c/run_tests.sh.in index 393c01fc..5dd723de 100644 --- a/re2c/run_tests.sh.in +++ b/re2c/run_tests.sh.in @@ -30,6 +30,7 @@ if test ! -x "${re2c}"; then exit 1 fi +diff_prog="diff" valgrind="" skeleton=0 keep_tmp_files=0 @@ -45,6 +46,7 @@ do "--wine" ) wine=`which wine` re2c="${re2c}.exe" + diff_prog="${diff_prog} -b" # ignore whitespace at the end of line ;; "-j"* ) number=${arg#-j} @@ -113,13 +115,6 @@ then echo $valgrind fi -diff_prog="diff" -if [[ @CC@ =~ "mingw" || -n "${wine}" ]] -then - # ignore whitespace at the end of line - diff_prog="${diff_prog} -b" -fi - run_pack() { local log="$1" shift 1