ash,hush: add a test that "continue" does not cripple traps
Both shells pass this test. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
b98b4c103f
commit
ff59b7b112
1
shell/ash_test/ash-signals/continue_and_trap1.right
Normal file
1
shell/ash_test/ash-signals/continue_and_trap1.right
Normal file
@ -0,0 +1 @@
|
|||||||
|
Exiting
|
7
shell/ash_test/ash-signals/continue_and_trap1.tests
Executable file
7
shell/ash_test/ash-signals/continue_and_trap1.tests
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
trap "echo Exiting; exit" INT
|
||||||
|
|
||||||
|
(sleep 1; kill -s INT $$) &
|
||||||
|
|
||||||
|
while continue; do
|
||||||
|
continue;
|
||||||
|
done
|
1
shell/hush_test/hush-signals/continue_and_trap1.right
Normal file
1
shell/hush_test/hush-signals/continue_and_trap1.right
Normal file
@ -0,0 +1 @@
|
|||||||
|
Exiting
|
7
shell/hush_test/hush-signals/continue_and_trap1.tests
Executable file
7
shell/hush_test/hush-signals/continue_and_trap1.tests
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
trap "echo Exiting; exit" INT
|
||||||
|
|
||||||
|
(sleep 1; kill -s INT $$) &
|
||||||
|
|
||||||
|
while continue; do
|
||||||
|
continue;
|
||||||
|
done
|
Loading…
Reference in New Issue
Block a user