From 5fd969a7170fa2f46be310310de29b92c020a874 Mon Sep 17 00:00:00 2001 From: Ulya Trofimovich Date: Wed, 6 Mar 2019 12:15:48 +0000 Subject: [PATCH] run_tests.sh: ignore difference in trailing whitespace with --wine option. --- re2c/run_tests.sh.in | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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 -- 2.40.0