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



commit 03e7508d7dfd28e9f385bb82e16056ed5da5e6d2
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]