summaryrefslogtreecommitdiffstats
path: root/tests/frame.test
diff options
context:
space:
mode:
authorculler <culler>2019-04-20 03:40:21 (GMT)
committerculler <culler>2019-04-20 03:40:21 (GMT)
commit8c0226fa4dd91e69502960bebbee4a44bba73fca (patch)
treebfb0eb23d508e659d96f2b564bfa390e2c88d86b /tests/frame.test
parent2700604e2ded309b8fa397c011e6df5ac33b9682 (diff)
downloadtk-8c0226fa4dd91e69502960bebbee4a44bba73fca.zip
tk-8c0226fa4dd91e69502960bebbee4a44bba73fca.tar.gz
tk-8c0226fa4dd91e69502960bebbee4a44bba73fca.tar.bz2
On macOS, squelch more availability warnings. Fix a hard to find bug [40ada90762] which could sometimes cause a segfault.
Diffstat (limited to 'tests/frame.test')
-rw-r--r--tests/frame.test7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/frame.test b/tests/frame.test
index 45a91b3..e374326 100644
--- a/tests/frame.test
+++ b/tests/frame.test
@@ -664,11 +664,16 @@ test frame-3.9 {TkCreateFrame procedure, -use option} -constraints {
wm geometry .t +0+0
toplevel .x -width 140 -height 300 -use [winfo id .t] -bg green
tkwait visibility .x
- update idletasks
list [expr {[winfo rootx .x] - [winfo rootx .t]}] \
[expr {[winfo rooty .x] - [winfo rooty .t]}] \
[winfo width .t] [winfo height .t]
} -cleanup {
+# This call to update idletasks was added to prevent a crash that was
+# observed on OSX 10.12 (Sierra) only. Any change, such as using the
+# Development version to make debugging symbols available, adding a print
+# statement, or calling update idletasks here, would make the test pass
+# with no segfault.
+ update idletasks
deleteWindows
} -result {0 0 140 300}
test frame-3.10 {TkCreateFrame procedure, -use option} -constraints {