diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2008-05-07 10:39:35 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2008-05-07 10:39:35 (GMT) |
commit | a0b336f430a04225031da273f5deddedc558534b (patch) | |
tree | a400d35e3eb099464aeb56b217bb71f4871f0abc /tests | |
parent | 25edfa4cd0936846023823ff357f138cbfd37cd9 (diff) | |
download | tcl-a0b336f430a04225031da273f5deddedc558534b.zip tcl-a0b336f430a04225031da273f5deddedc558534b.tar.gz tcl-a0b336f430a04225031da273f5deddedc558534b.tar.bz2 |
Fix off-by-one error that caused crashes. Backport from HEAD.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/dict.test | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/dict.test b/tests/dict.test index ce51633..cc861b4 100644 --- a/tests/dict.test +++ b/tests/dict.test @@ -9,7 +9,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: dict.test,v 1.24 2008/03/16 17:00:44 dkf Exp $ +# RCS: @(#) $Id: dict.test,v 1.24.2.1 2008/05/07 10:39:40 dkf Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest 2 @@ -414,6 +414,9 @@ test dict-13.9 {dict append command: write failure} { catch {unset dictVar} set result } {1 {can't set "dictVar": variable is array}} +test dict-13.10 {compiled dict command: crash case} { + apply {{} {dict append dictVar a o k}} +} {a ok} test dict-14.1 {dict for command: syntax} { list [catch {dict for} msg] $msg |