summaryrefslogtreecommitdiffhomepage
path: root/shell/hush_test/hush-trap/usage.tests
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-03-29 09:54:40 +0000
committerMike Frysinger <vapier@gentoo.org>2009-03-29 09:54:40 +0000
commitfd303b11efb2c87ed239b36c432566a36f859c8e (patch)
tree60164cd1e711b2ca49096b3c4e4e2ab961fa2db9 /shell/hush_test/hush-trap/usage.tests
parent038fe447138aa04d1295cde2e597ec3497ce9214 (diff)
add test cases for `trap` ... but disabled for now until trap support is committed
Diffstat (limited to 'shell/hush_test/hush-trap/usage.tests')
-rw-r--r--shell/hush_test/hush-trap/usage.tests23
1 files changed, 23 insertions, 0 deletions
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