about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--Test/08traps.ztst9
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 12cf5feac..90b337060 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2000-06-14  Peter Stephenson  <pws@cambridgesiliconradio.com>
 
+	* 11902: Test/08traps.ztst: add test for localtraps with SIGWINCH.
+
 	* 11901: Src/signals.c: not one but two more bugs in trap
 	saving: sigfuncs wasn't reset for function signals, and dosavetrap()
 	didn't check sigtrapped before assuming sigfuncs was valid.
diff --git a/Test/08traps.ztst b/Test/08traps.ztst
index 641a50ad2..f898a379e 100644
--- a/Test/08traps.ztst
+++ b/Test/08traps.ztst
@@ -175,3 +175,12 @@
 >testunset
 >f
 >ERR-or!
+
+  f() {
+    setopt localtraps
+    TRAPWINCH() { print "Window changed.  That wrecked the test."; }
+  }
+  f
+  f
+  functions TRAPWINCH
+1:Unsetting ordinary traps with localtraps.