summaryrefslogtreecommitdiffstats
path: root/tests/var.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2016-07-17 12:02:27 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2016-07-17 12:02:27 (GMT)
commit9b1a5dc8783f269f67ee4d956f3e5d008eda9771 (patch)
tree3f303842101d81e949e5894bff0d6ba99d78692f /tests/var.test
parent4bc50a0a12bb90a852f7fa399e88fe486dc29714 (diff)
downloadtcl-9b1a5dc8783f269f67ee4d956f3e5d008eda9771.zip
tcl-9b1a5dc8783f269f67ee4d956f3e5d008eda9771.tar.gz
tcl-9b1a5dc8783f269f67ee4d956f3e5d008eda9771.tar.bz2
[77d58e3a7a] Test case independence: var.
Diffstat (limited to 'tests/var.test')
-rw-r--r--tests/var.test6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/var.test b/tests/var.test
index 690bd10..297034a 100644
--- a/tests/var.test
+++ b/tests/var.test
@@ -169,7 +169,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
@@ -181,7 +183,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}