summaryrefslogtreecommitdiffstats
path: root/tests/packgrid.test
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2017-12-21 19:49:04 (GMT)
committerfvogel <fvogelnew1@free.fr>2017-12-21 19:49:04 (GMT)
commitc094def2c9b4b3f892cd1ad9042c4c0fcb8e8112 (patch)
tree2093be515e60f6dfa37d07deae2c8bc2044eb6a7 /tests/packgrid.test
parent3f946f0793765b54d4a3149d54c1ecb876ca246c (diff)
downloadtk-c094def2c9b4b3f892cd1ad9042c4c0fcb8e8112.zip
tk-c094def2c9b4b3f892cd1ad9042c4c0fcb8e8112.tar.gz
tk-c094def2c9b4b3f892cd1ad9042c4c0fcb8e8112.tar.bz2
Testcases added for [aa7679685e]: Destroying a master-window .. then crash
Diffstat (limited to 'tests/packgrid.test')
-rw-r--r--tests/packgrid.test30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/packgrid.test b/tests/packgrid.test
index 355b49d..6074ce9 100644
--- a/tests/packgrid.test
+++ b/tests/packgrid.test
@@ -246,5 +246,35 @@ test packgrid-3.4 {stealing slave} -setup {
destroy .g
} -result {cannot use geometry manager grid inside . which already has slaves managed by pack}
+test packgrid-4.1 {slave stolen after master destruction - bug [aa7679685e]} -setup {
+ frame .f
+ button .b -text hello
+} -body {
+ pack .f
+ grid .b -in .f
+ destroy .f
+ set res [winfo manager .b]
+ # shall not crash
+ pack .b
+ set res
+} -cleanup {
+ destroy .b
+} -result {}
+
+test packgrid-4.2 {slave stolen after master destruction - bug [aa7679685e]} -setup {
+ frame .f
+ button .b -text hello
+} -body {
+ pack .f
+ pack .b -in .f
+ destroy .f
+ set res [winfo manager .b]
+ # shall not crash
+ grid .b
+ set res
+} -cleanup {
+ destroy .b
+} -result {}
+
cleanupTests
return