]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
tests: Invalid Code needs to be recoginized explicitly by an compiler error
authorRico Tzschichholz <ricotz@ubuntu.com>
Mon, 27 Nov 2017 11:55:28 +0000 (12:55 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 27 Nov 2017 11:55:28 +0000 (12:55 +0100)
Running with G_DEBUG=fatal-warnings makes those fail to easily, so only
pass it to positive test-cases.

tests/testrunner.sh

index b9982ab2f3cb1599fe5894655b0cdb2b2bbd4339..7e0fef939335a03da9992914f8e059e46950ee29 100755 (executable)
@@ -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