3 test_description
='signals work as we expect'
12 test_expect_success
'sigchain works' '
13 { test-sigchain >actual; ret=$?; } &&
15 143) true ;; # POSIX w/ SIGTERM=15
16 271) true ;; # ksh w/ SIGTERM=15
20 test_cmp expect actual
23 test_expect_success
!MINGW
'signals are propagated using shell convention' '
24 # we use exec here to avoid any sub-shell interpretation
26 git config alias.sigterm "!exec test-sigchain" &&
27 test_expect_code 143 git sigterm
31 for i
in $
(test_seq
1 100)
33 git
diff --cached --binary ||
return
37 test_expect_success
'create blob' '
38 test-genrandom foo 16384 >file &&
42 test_expect_success
!MINGW
'a constipated git dies with SIGPIPE' '
43 OUT=$( ((large_git; echo $? 1>&3) | :) 3>&1 )
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 )