mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-19 11:31:26 +01:00
11902: SIGWINCH local trap test
This commit is contained in:
parent
4611530c45
commit
05c34efa3c
2 changed files with 11 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue