From fd303b11efb2c87ed239b36c432566a36f859c8e Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 29 Mar 2009 09:54:40 +0000 Subject: add test cases for `trap` ... but disabled for now until trap support is committed --- shell/hush_test/hush-trap/usage.tests | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 shell/hush_test/hush-trap/usage.tests (limited to 'shell/hush_test/hush-trap/usage.tests') diff --git a/shell/hush_test/hush-trap/usage.tests b/shell/hush_test/hush-trap/usage.tests new file mode 100644 index 000000000..d29c6e74a --- /dev/null +++ b/shell/hush_test/hush-trap/usage.tests @@ -0,0 +1,23 @@ +# no output -- default state +echo ___ +trap + +# assign some traps +echo ___ +trap "a" EXIT INT USR1 USR2 + +# show them all +echo ___ +trap + +# clear one +echo ___ +trap 0 INT +echo ___ +trap + +# clear another +echo ___ +trap "-" USR1 +echo ___ +trap -- cgit v1.2.3