summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorpatthoyts@users.sourceforge.net <patthoyts>2008-08-01 19:38:58 (GMT)
committerpatthoyts@users.sourceforge.net <patthoyts>2008-08-01 19:38:58 (GMT)
commit7bf7fc934e49b4b68a23a120ce3ce9a99619e75a (patch)
treefe2825b400bfb502c075f42539458f482ff41849 /tests
parent5f89c906f42f2f40191cbd8f315316221b8f4ed4 (diff)
downloadtk-7bf7fc934e49b4b68a23a120ce3ce9a99619e75a.zip
tk-7bf7fc934e49b4b68a23a120ce3ce9a99619e75a.tar.gz
tk-7bf7fc934e49b4b68a23a120ce3ce9a99619e75a.tar.bz2
Check wmPtr is valid in TopLevelReqProc to fix [Bug 2028703]
Diffstat (limited to 'tests')
-rw-r--r--tests/wm.test12
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: