diff options
author | patthoyts <patthoyts@users.sourceforge.net> | 2008-08-01 19:38:58 (GMT) |
---|---|---|
committer | patthoyts <patthoyts@users.sourceforge.net> | 2008-08-01 19:38:58 (GMT) |
commit | 638e7df06d0096e3efb86c4410205fe56e10358d (patch) | |
tree | fe2825b400bfb502c075f42539458f482ff41849 /tests/wm.test | |
parent | 62713768eda1dfeb194cbef982b9bbea710cd64d (diff) | |
download | tk-638e7df06d0096e3efb86c4410205fe56e10358d.zip tk-638e7df06d0096e3efb86c4410205fe56e10358d.tar.gz tk-638e7df06d0096e3efb86c4410205fe56e10358d.tar.bz2 |
Check wmPtr is valid in TopLevelReqProc to fix [Bug 2028703]
Diffstat (limited to 'tests/wm.test')
-rw-r--r-- | tests/wm.test | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/wm.test b/tests/wm.test index dd115b8..725317d 100644 --- a/tests/wm.test +++ b/tests/wm.test @@ -7,7 +7,7 @@ # Copyright (c) 1998-1999 by Scriptics Corporation. # All rights reserved. # -# RCS: @(#) $Id: wm.test,v 1.41 2008/07/26 13:03:06 patthoyts Exp $ +# RCS: @(#) $Id: wm.test,v 1.42 2008/08/01 19:39:01 patthoyts Exp $ # This file tests window manager interactions that work across platforms. # Window manager tests that only work on a specific platform should be placed @@ -2164,6 +2164,16 @@ test wm-forget-1.3 "bug #2009788: forget toplevel can cause crash" -body { } -cleanup { deleteWindows } -result {1} +test wm-forget-1.4 "pack into unmapped toplevel causes crash" -body { + toplevel .parent + toplevel .parent.child + wm forget .parent.child + pack [button .parent.child.button -text Hello] + after 250 {destroy .parent} + tkwait window .parent +} -cleanup { + deleteWindows +} -result {} # FIXME: |