diff options
Diffstat (limited to '')
-rw-r--r-- | bin/1sh/tests/builtins/trap14.0 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/1sh/tests/builtins/trap14.0 b/bin/1sh/tests/builtins/trap14.0 new file mode 100644 index 00000000..e2e79649 --- /dev/null +++ b/bin/1sh/tests/builtins/trap14.0 @@ -0,0 +1,10 @@ +# $FreeBSD: releng/12.1/bin/sh/tests/builtins/trap14.0 257399 2013-10-30 21:36:15Z jilles $ + +{ + trap - INT + ${SH} -c 'kill -INT $PPID' & + wait +} & +wait $! +r=$? +[ "$r" -gt 128 ] && [ "$(kill -l "$r")" = INT ] |