ash testsuite: add return_in_trap1.tests
Currently it fails Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
20
shell/hush_test/hush-signals/catch.tests
Executable file
20
shell/hush_test/hush-signals/catch.tests
Executable file
@@ -0,0 +1,20 @@
|
||||
# avoid ugly warnings about signals not being caught
|
||||
trap ":" USR1 USR2
|
||||
|
||||
"$THIS_SH" -c '
|
||||
trap "echo caught" USR2
|
||||
echo "sending USR2"
|
||||
kill -USR2 $$
|
||||
|
||||
trap "" USR2
|
||||
echo "sending USR2"
|
||||
kill -USR2 $$
|
||||
|
||||
trap "-" USR2
|
||||
echo "sending USR2"
|
||||
kill -USR2 $$
|
||||
|
||||
echo "not reached"
|
||||
'
|
||||
|
||||
trap "-" USR1 USR2
|
||||
Reference in New Issue
Block a user