diff options
Diffstat (limited to 't')
-rw-r--r-- | t/test-lib.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh index dbb13af33..16ceb5316 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -618,7 +618,12 @@ test_must_fail () { test_might_fail () { "$@" - test $? -ge 0 -a $? -le 129 -o $? -gt 192 + exit_code=$? + if test $exit_code -gt 129 -a $exit_code -le 192; then + echo >&2 "test_might_fail: died by signal: $*" + return 1 + fi + return 0 } # test_cmp is a helper function to compare actual and expected output. |