]> granicus.if.org Git - re2c/commitdiff
run_tests.sh: ignore difference in trailing whitespace with --wine option.
authorUlya Trofimovich <skvadrik@gmail.com>
Wed, 6 Mar 2019 12:15:48 +0000 (12:15 +0000)
committerUlya Trofimovich <skvadrik@gmail.com>
Wed, 6 Mar 2019 12:15:48 +0000 (12:15 +0000)
re2c/run_tests.sh.in

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