diff options
author | Johannes Sixt <johannes.sixt@telecom.at> | 2006-11-13 13:50:04 +0000 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-11-13 14:26:41 -0800 |
commit | 40cf043389ef4cdf3e56e7c4268d6f302e387fa0 (patch) | |
tree | 265c6df6aaa5233c534a6bebd2a380e7e638bcba /t/test-lib.sh | |
parent | bae777db33951468824e6beed6de900e7db6d51f (diff) | |
download | git-40cf043389ef4cdf3e56e7c4268d6f302e387fa0.tar.gz |
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>
Diffstat (limited to 't/test-lib.sh')
-rwxr-xr-x | t/test-lib.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh index 07cb706fa8..3895f16709 100755 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -129,7 +129,7 @@ test_expect_failure () { 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 |