summaryrefslogtreecommitdiff
path: root/t/t0005-signals.sh
blob: 9707af7d0377509bb02c29c7fb972345d1cc2253 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

test_description='signals work as we expect'
. ./test-lib.sh

cat >expect <<EOF
three
two
one
EOF

test_expect_success 'sigchain works' '
	test-sigchain >actual
	case "$?" in
	130) true ;; # POSIX w/ SIGINT=2
	  3) true ;; # Windows
	  *) false ;;
	esac &&
	test_cmp expect actual
'

test_done