diff options
Diffstat (limited to '')
-rw-r--r-- | bin/1sh/tests/builtins/trap15.0 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/1sh/tests/builtins/trap15.0 b/bin/1sh/tests/builtins/trap15.0 new file mode 100644 index 00000000..97836e17 --- /dev/null +++ b/bin/1sh/tests/builtins/trap15.0 @@ -0,0 +1,5 @@ +# $FreeBSD: releng/12.1/bin/sh/tests/builtins/trap15.0 281718 2015-04-18 23:49:57Z bdrewery $ + +(${SH} -c 'term(){ exit 5;}; trap term TERM; kill -TERM $$') & +wait >/dev/null 2>&1 $! +[ $? -eq 5 ] |