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>
Jeff King committed
Mar 20, 2015 at 06:13 UTC
635ce72fae23a7d94625325fb02b5ff4416f3596
1 file changed
+2
-2
t/t0005-signals.sh
+2
-2
@@ -40,12 +40,12 @@ test_expect_success 'create blob' '
40
'
41
42
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 ) &&
44
test "$OUT" -eq 141
45
'
46
47
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 ) &&
49
test "$OUT" -eq 141
50
'
51