summaryrefslogtreecommitdiffstats
path: root/tests/menu.test
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2023-08-29 19:21:29 (GMT)
committerfvogel <fvogelnew1@free.fr>2023-08-29 19:21:29 (GMT)
commitcad6b9f17cdf949785417b916441951939ef6818 (patch)
tree6024b030e8b18fae6de12b4fcd09e702f40dcbb8 /tests/menu.test
parent48655a1f7e7a963e12f20533c18bfd7128fcacea (diff)
downloadtk-cad6b9f17cdf949785417b916441951939ef6818.zip
tk-cad6b9f17cdf949785417b916441951939ef6818.tar.gz
tk-cad6b9f17cdf949785417b916441951939ef6818.tar.bz2
Renumber test menu-40.1 introduced by previous commit into menu-41.1 (name clash resolution).
Diffstat (limited to 'tests/menu.test')
-rw-r--r--tests/menu.test36
1 files changed, 18 insertions, 18 deletions
diff --git a/tests/menu.test b/tests/menu.test
index 6b68ee4..7c816ce 100644
--- a/tests/menu.test
+++ b/tests/menu.test
@@ -4100,24 +4100,6 @@ test menu-39.1 {empty -type - bug be8f5b9fc2} -setup {
destroy .m
} -returnCodes error -result {ambiguous type "": must be menubar, normal, or tearoff}
-test menu-40.1 {use-after-free fix - bug 1797555fff} -setup {
- toplevel .t
- menu .t.menubar -type menubar
- menu .t.menubar.select -title Select
- menu .t.menubar.select.chain -title Chain
- .t.menubar.select insert 1 cascade -menu .t.menubar.select.chain -label Chain
- .t.menubar add cascade -menu .t.menubar.select -label Select
- .t configure -menu .t.menubar
- .t.menubar.select.chain insert 1 command
- update idletasks
-} -body {
- # The following two lines caused Tk to read from and write to freed memory
- destroy .t.menubar.select.chain
- .t.menubar.select delete 1
-} -cleanup {
- destroy .t
-} -result {}
-
test menu-40.1 {identifiers - auto generated} -setup {
destroy .m
} -body {
@@ -4270,6 +4252,24 @@ test menu-40.14 {identifiers - reserved word} -setup {
destroy .m
} -result {2}
+test menu-41.1 {use-after-free fix - bug 1797555fff} -setup {
+ toplevel .t
+ menu .t.menubar -type menubar
+ menu .t.menubar.select -title Select
+ menu .t.menubar.select.chain -title Chain
+ .t.menubar.select insert 1 cascade -menu .t.menubar.select.chain -label Chain
+ .t.menubar add cascade -menu .t.menubar.select -label Select
+ .t configure -menu .t.menubar
+ .t.menubar.select.chain insert 1 command
+ update idletasks
+} -body {
+ # The following two lines caused Tk to read from and write to freed memory
+ destroy .t.menubar.select.chain
+ .t.menubar.select delete 1
+} -cleanup {
+ destroy .t
+} -result {}
+
# cleanup
imageFinish
deleteWindows