summaryrefslogtreecommitdiffstats
path: root/tests/ttk
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2011-06-29 21:34:11 (GMT)
committerdgp <dgp@noemail.net>2011-06-29 21:34:11 (GMT)
commit32177c98d592c2cee2afe7c7848bcff3fe602ecd (patch)
tree9a60767652409c11c2188e1f7bb9ad7f8a800fae /tests/ttk
parente60f0b2535552253fda39344117777bc4eb57782 (diff)
downloadtk-32177c98d592c2cee2afe7c7848bcff3fe602ecd.zip
tk-32177c98d592c2cee2afe7c7848bcff3fe602ecd.tar.gz
tk-32177c98d592c2cee2afe7c7848bcff3fe602ecd.tar.bz2
3341056 Correct segfault due to flaw in the 2011-06-17 commit.
FossilOrigin-Name: b938e2364a82b9589c87ed813dde056010a5c9b9
Diffstat (limited to 'tests/ttk')
-rw-r--r--tests/ttk/ttk.test19
1 files changed, 18 insertions, 1 deletions
diff --git a/tests/ttk/ttk.test b/tests/ttk/ttk.test
index 1eec180..5a982b6 100644
--- a/tests/ttk/ttk.test
+++ b/tests/ttk/ttk.test
@@ -560,12 +560,29 @@ test ttk-15.1 {Bug 3062331} -setup {
} -body {
set Y {}
ttk::button .b -textvariable Y
- trace variable Y u "destroy .b"
+ trace variable Y u "destroy .b; #"
unset Y
} -cleanup {
destroy .b
} -result {}
+test ttk-15.2 {Bug 3341056} -setup {
+ proc foo {} {
+ destroy .lf
+ ttk::labelframe .lf
+ ttk::checkbutton .lf.cb -text xxx
+ }
+} -body {
+ ttk::button .b -text xxx -command foo
+ .b invoke
+ .b invoke
+ .lf.cb invoke
+ destroy .b
+} -cleanup {
+ rename foo {}
+ destroy .lf
+} -result {}
+
## Test ensemble processing:
#
# (See also: SF#2021443)