Skip to content

Commit 52faa0e

Browse files
committed
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
2 parents bb1c8fb + 04422c7 commit 52faa0e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

t/t0005-signals.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,11 @@ test_expect_success 'sigchain works' '
2020
test_cmp expect actual
2121
'
2222

23+
test_expect_success !MINGW 'signals are propagated using shell convention' '
24+
# we use exec here to avoid any sub-shell interpretation
25+
# of the exit code
26+
git config alias.sigterm "!exec test-sigchain" &&
27+
test_expect_code 143 git sigterm
28+
'
29+
2330
test_done

0 commit comments

Comments
 (0)