summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorculler <culler>2024-05-23 23:32:31 (GMT)
committerculler <culler>2024-05-23 23:32:31 (GMT)
commitba5defb6f8c03eb5f52b6641bf002059467df4a1 (patch)
tree014330fe78a0e969785bcd4d2761177c04723b51
parent012c6e1a16eb7548e1d804b07740458d6328dfb8 (diff)
downloadtk-ba5defb6f8c03eb5f52b6641bf002059467df4a1.zip
tk-ba5defb6f8c03eb5f52b6641bf002059467df4a1.tar.gz
tk-ba5defb6f8c03eb5f52b6641bf002059467df4a1.tar.bz2
fix wm-iconwindow-2.1
-rw-r--r--tests/wm.test5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/wm.test b/tests/wm.test
index 926615e..2b31e5e 100644
--- a/tests/wm.test
+++ b/tests/wm.test
@@ -945,10 +945,11 @@ test wm-iconwindow-1.5 {usage} -setup {
test wm-iconwindow-2.1 {setting and reading values} -setup {
destroy .icon
+ # Destroying and creating .t prevents a segfault on macOS
+ destroy .t
+ toplevel .t
set result {}
} -body {
- #added to avoid a crash on macOS
- deiconify .t; update
lappend result [wm iconwindow .t]
toplevel .icon -width 50 -height 50 -bg green
wm iconwindow .t .icon