mirror of
https://github.com/git/git
synced 2024-10-12 11:32:34 +00:00
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>
This commit is contained in:
parent
11f228b0be
commit
635ce72fae
|
@ -40,12 +40,12 @@ test_expect_success 'create blob' '
|
||||||
'
|
'
|
||||||
|
|
||||||
test_expect_success !MINGW 'a constipated git dies with SIGPIPE' '
|
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 "$OUT" -eq 141
|
||||||
'
|
'
|
||||||
|
|
||||||
test_expect_success !MINGW 'a constipated git dies with SIGPIPE even if parent ignores it' '
|
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
|
test "$OUT" -eq 141
|
||||||
'
|
'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue