about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2005-08-09 07:53:49 +0000
committerWayne Davison <wayned@users.sourceforge.net>2005-08-09 07:53:49 +0000
commit5cba05a3be7c1e9c597621c0d32cbe27c78be753 (patch)
treef7dabbe731caf0e3c3681eaa289657f54e25c1dc /Test
parent4cbd1fddfd1bb25a42a411a78a521a0d6bffd7a1 (diff)
downloadzsh-5cba05a3be7c1e9c597621c0d32cbe27c78be753.tar.gz
zsh-5cba05a3be7c1e9c597621c0d32cbe27c78be753.tar.xz
zsh-5cba05a3be7c1e9c597621c0d32cbe27c78be753.zip
21580: Thorsten's patch to make sure that no pre-existing traps
interfere with the tests.
Diffstat (limited to 'Test')
-rw-r--r--Test/C03traps.ztst5
1 files changed, 4 insertions, 1 deletions
diff --git a/Test/C03traps.ztst b/Test/C03traps.ztst
index ee4c1c069..ffaa70204 100644
--- a/Test/C03traps.ztst
+++ b/Test/C03traps.ztst
@@ -65,6 +65,7 @@
 >Exited.
 
   fn1() {
+    trap -
     trap
     trap 'print INT1' INT
     fn2() { trap 'print INT2' INT; trap; }
@@ -79,6 +80,7 @@
 >trap -- 'print INT1' INT
 
    fn1() {
+    trap -
     trap
     TRAPINT() { print INT1; }
     fn2() { TRAPINT() { print INT2; }; trap; }
@@ -87,7 +89,7 @@
     trap
   }
   fn1
-0: Nested `trap ... INT', not triggered
+0: Nested TRAPINT, not triggered
 >TRAPINT () {
 >	print INT1
 >}
@@ -99,6 +101,7 @@
 >}
 
   fn1() {
+    trap -
     trap 'print INT1' INT
     fn2() { trap - INT; trap; }
     trap