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



commit 21db934501a1f8ec0f2740806ba234507b56c540
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 3988e63..66ae1a6 100755
--- a/tests/testrunner.sh
+++ b/tests/testrunner.sh
@@ -26,8 +26,6 @@ srcdir=$PWD/`dirname $0`
 topsrcdir=$srcdir/..
 vapidir=$topsrcdir/vapi
 
-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]