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