From: Petri Lehtinen Date: Thu, 28 Jan 2010 18:58:25 +0000 (+0200) Subject: test/suites/api: Fail when a test fails X-Git-Tag: v1.2.1~12 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=jansson.git;a=commitdiff_plain;h=ab2e56768571dbe555d6bd56d31af07771f1e3a9 test/suites/api: Fail when a test fails The valgrind fix a while back apparently made the test system not notice normal failures in suites/api. --- diff --git a/test/suites/api/run b/test/suites/api/run index 02e92b0..8688e0f 100755 --- a/test/suites/api/run +++ b/test/suites/api/run @@ -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 }