summaryrefslogtreecommitdiff
path: root/tests/trap.tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/trap.tests')
-rw-r--r--tests/trap.tests7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/trap.tests b/tests/trap.tests
index 9aac725..ded1d70 100644
--- a/tests/trap.tests
+++ b/tests/trap.tests
@@ -66,6 +66,8 @@ trap '' USR2
# test ERR trap
./trap2.sub
+${THIS_SH} ./trap3.sub
+
#
# show that setting a trap on SIGCHLD is not disastrous.
#
@@ -75,6 +77,7 @@ trap 'echo caught a child death' SIGCHLD
sleep 7 & sleep 6 & sleep 5 &
+# this will only catch the first, since there's a trap on SIGCHLD
wait
trap -p SIGCHLD
@@ -84,3 +87,7 @@ trap -p SIGCHLD
trap - SIGINT QUIT TERM
trap
+
+trap - SIGCHLD
+wait
+