Merge branch 'jk/test-exit-code-by-signal'
authorJunio C Hamano <gitster@pobox.com>
Tue, 11 Jun 2013 20:31:25 +0000 (13:31 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 11 Jun 2013 20:31:25 +0000 (13:31 -0700)
* jk/test-exit-code-by-signal:
t0005: skip signal death exit code test on Windows
t0005: test git exit code from signal death

t/t0005-signals.sh
index 93e58c00e886db22b5ebf86af103efc4e65ec832..981437b3a88b86ee1ddd26f842a0048b8dc2b57f 100755 (executable)
@@ -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