mirror of
https://github.com/git/git.git
synced 2025-01-19 14:04:07 +08: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' '
|
||||
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
|
||||
'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user