projects
/
profile
/
ivi
/
jansson.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d8ea2f8
)
test/suites/api: Fail when a test fails
author
Petri Lehtinen
<petri@digip.org>
Thu, 28 Jan 2010 18:58:25 +0000
(20:58 +0200)
committer
Petri 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
patch
|
blob
|
history
diff --git
a/test/suites/api/run
b/test/suites/api/run
index
02e92b0
..
8688e0f
100755
(executable)
--- 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 \
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
}
valgrind_check $test_log/stderr || return 1
fi
}