summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2013-06-11 13:31:25 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-06-11 13:31:25 -0700
commit52faa0e8c80ec8351f735c32d858b167d63a0642 (patch)
treefa789c116672a3751d8038c1d2e86f798778ec56 /t
parentMerge branch 'fc/at-head' (diff)
parentt0005: skip signal death exit code test on Windows (diff)
downloadtgif-52faa0e8c80ec8351f735c32d858b167d63a0642.tar.xz
Merge branch 'jk/test-exit-code-by-signal'
* jk/test-exit-code-by-signal: t0005: skip signal death exit code test on Windows t0005: test git exit code from signal death
Diffstat (limited to 't')
-rwxr-xr-xt/t0005-signals.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t0005-signals.sh b/t/t0005-signals.sh
index 93e58c00e8..981437b3a8 100755
--- a/t/t0005-signals.sh
+++ b/t/t0005-signals.sh
@@ -20,4 +20,11 @@ test_expect_success 'sigchain works' '
test_cmp expect actual
'
+test_expect_success !MINGW 'signals are propagated using shell convention' '
+ # we use exec here to avoid any sub-shell interpretation
+ # of the exit code
+ git config alias.sigterm "!exec test-sigchain" &&
+ test_expect_code 143 git sigterm
+'
+
test_done