aboutsummaryrefslogtreecommitdiffstats
path: root/shell_cmds/sh/tests/builtins/trap14.0
diff options
context:
space:
mode:
Diffstat (limited to 'shell_cmds/sh/tests/builtins/trap14.0')
-rw-r--r--shell_cmds/sh/tests/builtins/trap14.010
1 files changed, 10 insertions, 0 deletions
diff --git a/shell_cmds/sh/tests/builtins/trap14.0 b/shell_cmds/sh/tests/builtins/trap14.0
new file mode 100644
index 0000000..8c982b2
--- /dev/null
+++ b/shell_cmds/sh/tests/builtins/trap14.0
@@ -0,0 +1,10 @@
+# $FreeBSD: head/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 ]