summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-02-26 21:37:26 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-02-26 21:37:26 (GMT)
commit8ef250c55908d1c752267ea4a05e0a421a729723 (patch)
treebdee3a156606ad533e9d45faacba3ffa81930143 /t
parent15be621072740ccef0e89a3992ff369afd7c21bd (diff)
parent43f3afc6bc6b79715ea46aaf341683cbba6ee965 (diff)
downloadgit-8ef250c55908d1c752267ea4a05e0a421a729723.zip
git-8ef250c55908d1c752267ea4a05e0a421a729723.tar.gz
git-8ef250c55908d1c752267ea4a05e0a421a729723.tar.bz2
Merge branch 'jk/epipe-in-async'
Handling of errors while writing into our internal asynchronous process has been made more robust, which reduces flakiness in our tests. * jk/epipe-in-async: t5504: handle expected output from SIGPIPE death test_must_fail: report number of unexpected signal fetch-pack: ignore SIGPIPE in sideband demuxer write_or_die: handle EPIPE in async threads
Diffstat (limited to 't')
-rwxr-xr-xt/t5504-fetch-receive-strict.sh5
-rw-r--r--t/test-lib-functions.sh2
2 files changed, 5 insertions, 2 deletions
diff --git a/t/t5504-fetch-receive-strict.sh b/t/t5504-fetch-receive-strict.sh
index 89224ed..a3e12d2 100755
--- a/t/t5504-fetch-receive-strict.sh
+++ b/t/t5504-fetch-receive-strict.sh
@@ -101,7 +101,10 @@ test_expect_success 'push with receive.fsckobjects' '
git config transfer.fsckobjects false
) &&
test_must_fail ok=sigpipe git push --porcelain dst master:refs/heads/test >act &&
- test_cmp exp act
+ {
+ test_cmp exp act ||
+ ! test -s act
+ }
'
test_expect_success 'push with transfer.fsckobjects' '
diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh
index c64e5a5..8d99eb3 100644
--- a/t/test-lib-functions.sh
+++ b/t/test-lib-functions.sh
@@ -617,7 +617,7 @@ test_must_fail () {
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