Jeff King | 4a16d07 | 2009-01-22 01:02:35 -0500 | [diff] [blame] | 1 | #!/bin/sh |
2 | |||||
3 | test_description='signals work as we expect' | ||||
4 | . ./test-lib.sh | ||||
5 | |||||
6 | cat >expect <<EOF | ||||
7 | three | ||||
8 | two | ||||
9 | one | ||||
10 | EOF | ||||
11 | |||||
12 | test_expect_success 'sigchain works' ' | ||||
13 | test-sigchain >actual | ||||
14 | case "$?" in | ||||
Jeff King | 0ea8039 | 2009-01-30 03:21:01 -0500 | [diff] [blame] | 15 | 143) true ;; # POSIX w/ SIGTERM=15 |
Jeff King | 4a16d07 | 2009-01-22 01:02:35 -0500 | [diff] [blame] | 16 | 3) true ;; # Windows |
17 | *) false ;; | ||||
18 | esac && | ||||
19 | test_cmp expect actual | ||||
20 | ' | ||||
21 | |||||
22 | test_done |