Skip to content

Commit 6f5f9d7

Browse files
peffgitster
authored andcommitted
t0005: use test_match_signal as appropriate
The first test already uses this more portable construct (that was where it was factored from initially), but the later tests do a raw comparison against 141 to look for SIGPIPE, which can fail on some shells and platforms. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9b67c99 commit 6f5f9d7

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
@@ -42,12 +42,12 @@ test_expect_success 'create blob' '
4242

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

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

5353
test_done

0 commit comments

Comments
 (0)