test_must_fail: report number of unexpected signal

If a command is marked as test_must_fail but dies with a signal, we consider that a problem and report the error to stderr. However, we don't say _which_ signal; knowing that can make debugging easier. Let's share as much as we know. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Feb 24, 2016 at 02:45 UTC f3ed0b372d990eade2e4727f17d9ee40003badb1
1 file changed +1 -1
t/test-lib-functions.sh
+1 -1
@@ -617,7 +617,7 @@ test_must_fail () {
617 return 0
618 elif test $exit_code -gt 129 && test $exit_code -le 192
619 then
620 - echo >&2 "test_must_fail: died by signal: $*"
620 + echo >&2 "test_must_fail: died by signal $(($exit_code - 128)): $*"
621 return 1
622 elif test $exit_code -eq 127
623 then