Skip to content

Commit 635ce72

Browse files
peffgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 11f228b commit 635ce72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t0005-signals.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ test_expect_success 'create blob' '
4040
'
4141

4242
test_expect_success !MINGW 'a constipated git dies with SIGPIPE' '
43-
OUT=$( ((large_git; echo $? 1>&3) | :) 3>&1 )
43+
OUT=$( ((large_git; echo $? 1>&3) | :) 3>&1 ) &&
4444
test "$OUT" -eq 141
4545
'
4646

4747
test_expect_success !MINGW 'a constipated git dies with SIGPIPE even if parent ignores it' '
48-
OUT=$( ((trap "" PIPE; large_git; echo $? 1>&3) | :) 3>&1 )
48+
OUT=$( ((trap "" PIPE; large_git; echo $? 1>&3) | :) 3>&1 ) &&
4949
test "$OUT" -eq 141
5050
'
5151

0 commit comments

Comments
 (0)