t/t5710-info-alternate.sh: use the $( ... ) construct for command substitution
[gitweb.git] / t / test-lib-functions.sh
index 6e954068b87681a2f2cb91929ef48e84882550d9..c64e5a50258d1b3d3655e2dfcf8f391977c5e758 100644 (file)
@@ -612,6 +612,9 @@ 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: $*"