Merge branch 'lp/typofixes'
[gitweb.git] / t / test-lib-functions.sh
index 6e954068b87681a2f2cb91929ef48e84882550d9..8d99eb303fd62a1c179ab31f471a3376898586b0 100644 (file)
@@ -612,9 +612,12 @@ test_must_fail () {
        then
                echo >&2 "test_must_fail: command succeeded: $*"
                return 1
+       elif test $exit_code -eq 141 && list_contains "$_test_ok" sigpipe
+       then
+               return 0
        elif test $exit_code -gt 129 && test $exit_code -le 192
        then
-               echo >&2 "test_must_fail: died by signal: $*"
+               echo >&2 "test_must_fail: died by signal $(($exit_code - 128)): $*"
                return 1
        elif test $exit_code -eq 127
        then