summaryrefslogtreecommitdiff
path: root/test.tcl
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2010-01-24 12:58:35 +1000
committerSteve Bennett <steveb@workware.net.au>2010-10-15 11:02:45 +1000
commit541fe7c30691ace08847a35280d9cc8bc02e9a72 (patch)
tree530be84682be78cc1e34b5feaa64ee388f725768 /test.tcl
parent5dbbcf87423edb96cde7dfe59a2c8ef0a9d8ae2f (diff)
Allow incr on unset variable
From Tcl 8.5, implicitly set variable to 0
Diffstat (limited to 'test.tcl')
-rw-r--r--test.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.tcl b/test.tcl
index c4d287f..b869f47 100644
--- a/test.tcl
+++ b/test.tcl
@@ -1180,7 +1180,7 @@ test incr-1.13 {TclCompileIncrCmd: simple but new (unknown) local name} {
}
catch {p} msg
set msg
-} {can't read "bar": no such variable}
+} {1}
test incr-1.14 {TclCompileIncrCmd: simple local name, >255 locals} {
proc 260locals {} {
# create 260 locals
@@ -1399,7 +1399,7 @@ test incr-2.13 {incr command (not compiled): simple but new (unknown) local name
}
catch {p} msg
set msg
-} {can't read "bar": no such variable}
+} {1}
test incr-2.14 {incr command (not compiled): simple local name, >255 locals} {
proc 260locals {} {
set z incr