summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bae777d)
raw | patch | inline | side by side (parent: bae777d)
author | Johannes Sixt <johannes.sixt@telecom.at> | |
Mon, 13 Nov 2006 13:50:04 +0000 (13:50 +0000) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 13 Nov 2006 22:26:41 +0000 (14:26 -0800) |
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>
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>
t/test-lib.sh | patch | blob | history |
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 07cb706fa8a241bf707b91d033ea0c5c876d9307..3895f167093c6a237ad8337ebf8b3c56ee3700ad 100755 (executable)
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
error "bug in the test script: not 2 parameters to test-expect-failure"
say >&3 "expecting failure: $2"
test_run_ "$2"
- if [ "$?" = 0 -a "$eval_ret" != 0 ]
+ if [ "$?" = 0 -a "$eval_ret" != 0 -a "$eval_ret" -lt 129 ]
then
test_ok_ "$1"
else