From: Rico Tzschichholz Date: Mon, 27 Nov 2017 11:55:28 +0000 (+0100) Subject: tests: Invalid Code needs to be recoginized explicitly by an compiler error X-Git-Tag: 0.39.1~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03e7508d7dfd28e9f385bb82e16056ed5da5e6d2;p=thirdparty%2Fvala.git tests: Invalid Code needs to be recoginized explicitly by an compiler error Running with G_DEBUG=fatal-warnings makes those fail to easily, so only pass it to positive test-cases. --- diff --git a/tests/testrunner.sh b/tests/testrunner.sh index b9982ab2f..7e0fef939 100755 --- a/tests/testrunner.sh +++ b/tests/testrunner.sh @@ -27,8 +27,6 @@ topsrcdir=$srcdir/.. vapidir=$topsrcdir/vapi run_prefix="" -export G_DEBUG=fatal_warnings - VALAC=$topbuilddir/compiler/valac$EXEEXT VALAFLAGS="$VALAFLAGS \ --vapidir $vapidir \ @@ -172,7 +170,7 @@ for testfile in "$@"; do cat "$srcdir/$testfile" >> $SOURCEFILE echo "}" >> $SOURCEFILE - echo "./test$EXEEXT /$testpath" > check + echo "G_DEBUG=fatal-warnings ./test$EXEEXT /$testpath" > check ;; *.test) PART=0