test-lib.sh: A command dying due to a signal is an unexpected failure.
When test_expect_failure detects that a command failed, it still has to treat a program that crashed from a signal as unexpected failure. Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at> Signed-off-by: Junio C Hamano <junkio@cox.net>
Johannes Sixt committed
Nov 13, 2006 at 13:50 UTC
40cf043389ef4cdf3e56e7c4268d6f302e387fa0
1 file changed
+1
-1
t/test-lib.sh
+1
-1
@@ -129,7 +129,7 @@ test_expect_failure () {
129
error "bug in the test script: not 2 parameters to test-expect-failure"
130
say >&3 "expecting failure: $2"
131
test_run_ "$2"
132
- if [ "$?" = 0 -a "$eval_ret" != 0 ]
132
+ if [ "$?" = 0 -a "$eval_ret" != 0 -a "$eval_ret" -lt 129 ]
133
then
134
test_ok_ "$1"
135
else