diff options
author | dgp <dgp@users.sourceforge.net> | 2016-07-18 16:50:22 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2016-07-18 16:50:22 (GMT) |
commit | b40d7eb1f9fd438d96313292e9ff667799c7e911 (patch) | |
tree | 3762476e74c48c880cd6ab66a29d7202b771a124 /tests/var.test | |
parent | 9cc388df3d06570e47d68f284a74f4fa26b45426 (diff) | |
parent | 3766e26550a1315f09945ab1162d78d0143d32a2 (diff) | |
download | tcl-b40d7eb1f9fd438d96313292e9ff667799c7e911.zip tcl-b40d7eb1f9fd438d96313292e9ff667799c7e911.tar.gz tcl-b40d7eb1f9fd438d96313292e9ff667799c7e911.tar.bz2 |
[104f2885bb] Rework the "chan" Tcl_ObjType to properly validate cached channel name lookups.
Also merge backlog of test suite & doc improvements.
Diffstat (limited to 'tests/var.test')
-rw-r--r-- | tests/var.test | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/var.test b/tests/var.test index 803bbda..44e671a 100644 --- a/tests/var.test +++ b/tests/var.test @@ -184,7 +184,9 @@ test var-1.17 {TclLookupVar, resurrect array element via upvar to deleted array: set result } } {0 2 1 {can't set "foo": upvar refers to element in deleted array}} -test var-1.18 {TclLookupVar, resurrect array element via upvar to deleted array: uncompiled code path} { +test var-1.18 {TclLookupVar, resurrect array element via upvar to deleted array: uncompiled code path} -setup { + unset -nocomplain test_ns_var::x +} -body { namespace eval test_ns_var { variable result {} variable x @@ -196,7 +198,7 @@ test var-1.18 {TclLookupVar, resurrect array element via upvar to deleted array: namespace delete [namespace current] set result } -} {0 2 1 {can't set "foo": upvar refers to element in deleted array}} +} -result {0 2 1 {can't set "foo": upvar refers to element in deleted array}} test var-1.19 {TclLookupVar, right error message when parsing variable name} -body { [format set] thisvar(doesntexist) } -returnCodes error -result {can't read "thisvar(doesntexist)": no such variable} |