summaryrefslogtreecommitdiffstats
path: root/tests/listbox.test
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2013-03-11 18:02:47 (GMT)
committerdgp <dgp@noemail.net>2013-03-11 18:02:47 (GMT)
commite8f42ef4f2c2d542c1a2a2ec471b2f697f489a08 (patch)
treee43a57c94728f79b5afb7fe2fa023e2c807014cb /tests/listbox.test
parentaf1b169ca78c4d5a1e97f3a5d71af586d7ffc53a (diff)
downloadtk-e8f42ef4f2c2d542c1a2a2ec471b2f697f489a08.zip
tk-e8f42ef4f2c2d542c1a2a2ec471b2f697f489a08.tar.gz
tk-e8f42ef4f2c2d542c1a2a2ec471b2f697f489a08.tar.bz2
3607326 Stop segfault from [listbox .l -listvariable $array].
FossilOrigin-Name: 645ca43c5df0c4ff338e240aba2114bcf5ae99cb
Diffstat (limited to 'tests/listbox.test')
-rw-r--r--tests/listbox.test11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/listbox.test b/tests/listbox.test
index 25bc606..b4046b6 100644
--- a/tests/listbox.test
+++ b/tests/listbox.test
@@ -2158,6 +2158,17 @@ test listbox-29.1 {listbox selection behavior, -state disabled} {
lappend out [.l selection includes 2] [.l curselection]
} {1 1 2}
+test listbox-30.1 {Bug 3607326} -setup {
+ destroy .l
+ unset -nocomplain a
+} -body {
+ array set a {}
+ listbox .l -listvariable a
+} -cleanup {
+ destroy .l
+ unset -nocomplain a
+} -result * -match glob -returnCodes error
+
resetGridInfo
deleteWindows
option clear