summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2015-03-20 10:13:32 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-03-20 18:35:57 (GMT)
commit635ce72fae23a7d94625325fb02b5ff4416f3596 (patch)
tree96899a9dd71149fee41e6f462edcf34025d642e3
parent11f228b0be8d51dc6294d8132e91ad31e8b104b9 (diff)
downloadgit-635ce72fae23a7d94625325fb02b5ff4416f3596.zip
git-635ce72fae23a7d94625325fb02b5ff4416f3596.tar.gz
git-635ce72fae23a7d94625325fb02b5ff4416f3596.tar.bz2
t0005: fix broken &&-chains
The ":" noop command always returns true, so it is fine to include these lines in an &&-chain (and it appeases --chain-lint). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xt/t0005-signals.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t0005-signals.sh b/t/t0005-signals.sh
index 5c5707d..e7f27eb 100755
--- a/t/t0005-signals.sh
+++ b/t/t0005-signals.sh
@@ -40,12 +40,12 @@ test_expect_success 'create blob' '
'
test_expect_success !MINGW 'a constipated git dies with SIGPIPE' '
- OUT=$( ((large_git; echo $? 1>&3) | :) 3>&1 )
+ OUT=$( ((large_git; echo $? 1>&3) | :) 3>&1 ) &&
test "$OUT" -eq 141
'
test_expect_success !MINGW 'a constipated git dies with SIGPIPE even if parent ignores it' '
- OUT=$( ((trap "" PIPE; large_git; echo $? 1>&3) | :) 3>&1 )
+ OUT=$( ((trap "" PIPE; large_git; echo $? 1>&3) | :) 3>&1 ) &&
test "$OUT" -eq 141
'