t0005: fix broken &&-chains
authorJeff King <peff@peff.net>
Fri, 20 Mar 2015 10:13:32 +0000 (06:13 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Mar 2015 18:35:57 +0000 (11:35 -0700)
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>
t/t0005-signals.sh
index 5c5707d7158bd5156ba02c8955b0c0cc11eaa0ba..e7f27ebbc1748df28b6e686b5732c8af18cea7c9 100755 (executable)
@@ -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
 '