path: root/t
diff options
authorJeff King <>2009-01-30 08:21:01 (GMT)
committerJunio C Hamano <>2009-01-30 09:14:26 (GMT)
commit0ea8039644968e53d79a8dfbf739c87af4261d46 (patch)
treef69cf13d5e270fc96f73ca98c35a7e559ed990c0 /t
parenta3da8821208d6243dc5530d668f7c8f089814899 (diff)
t0005: use SIGTERM for sigchain test
The signal tests consists of checking that each of our handlers is executed, and that the test program was killed by the final signal. We arbitrarily used SIGINT as the kill signal. However, some platforms (notably Solaris) will default SIGINT to SIG_IGN if there is no controlling terminal. In that case, we don't end up killing the program with the final signal and the test fails. This is a problem since the test script should not depend on outside factors; let's use SIGTERM instead, which should behave consistently. Signed-off-by: Jeff King <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 't')
1 files changed, 1 insertions, 1 deletions
diff --git a/t/ b/t/
index 9707af7..09f855a 100755
--- a/t/
+++ b/t/
@@ -12,7 +12,7 @@ EOF
test_expect_success 'sigchain works' '
test-sigchain >actual
case "$?" in
- 130) true ;; # POSIX w/ SIGINT=2
+ 143) true ;; # POSIX w/ SIGTERM=15
3) true ;; # Windows
*) false ;;
esac &&