[vala/0.38] tests: Invalid Code needs to be recoginized explicitly by an compiler error



commit c4db0fff9904be9e1ed080338175b53bb13975f5
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Nov 27 12:55:28 2017 +0100

    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.

 tests/testrunner.sh |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/tests/testrunner.sh b/tests/testrunner.sh
index b9982ab..7e0fef9 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]