test/suites/api: Fail when a test fails
authorPetri Lehtinen <petri@digip.org>
Thu, 28 Jan 2010 18:58:25 +0000 (20:58 +0200)
committerPetri Lehtinen <petri@digip.org>
Thu, 28 Jan 2010 18:58:26 +0000 (20:58 +0200)
The valgrind fix a while back apparently made the test system not
notice normal failures in suites/api.

test/suites/api/run

index 02e92b0..8688e0f 100755 (executable)
@@ -17,7 +17,8 @@ run_test() {
     else
         $test_runner $suite_builddir/${test_name%.c} \
             >$test_log/stdout \
-            2>$test_log/stderr
+            2>$test_log/stderr \
+            || return 1
         valgrind_check $test_log/stderr || return 1
     fi
 }