diff options
author | dgp <dgp@noemail.net> | 2001-11-09 23:06:04 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2001-11-09 23:06:04 (GMT) |
commit | 7a7b8c43c3f129a7de5999c4ad1b6472f291f434 (patch) | |
tree | 012268e5787a44230c1be5af754701e4f9152a3a /tests | |
parent | 0e527773840343f416c5ea92599845dce1ec94a9 (diff) | |
download | tcl-7a7b8c43c3f129a7de5999c4ad1b6472f291f434.zip tcl-7a7b8c43c3f129a7de5999c4ad1b6472f291f434.tar.gz tcl-7a7b8c43c3f129a7de5999c4ad1b6472f291f434.tar.bz2 |
* tests/var.test:
* generic/tclVar.c: Corrected bug in [global] when dealing
with variable names matching :*. [Bug 480176]
FossilOrigin-Name: ea9824f0659505bdd43b025fa59b4be99ff14d3f
Diffstat (limited to 'tests')
-rw-r--r-- | tests/var.test | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/var.test b/tests/var.test index cb2d093..916b9b4 100644 --- a/tests/var.test +++ b/tests/var.test @@ -14,7 +14,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: var.test,v 1.17 2001/07/04 00:55:08 hobbs Exp $ +# RCS: @(#) $Id: var.test,v 1.18 2001/11/09 23:06:04 dgp Exp $ # if {[lsearch [namespace children] ::tcltest] == -1} { @@ -327,6 +327,16 @@ test var-6.3 {Tcl_GlobalObjCmd, variable named {} qualified by a namespace name} } p } {24} +test var-6.4 {Tcl_GlobalObjCmd, variable name matching :*} { + # Test for Tcl Bug 480176 + set :v broken + proc p {} { + global :v + set :v fixed + } + p + set :v +} {fixed} test var-7.1 {Tcl_VariableObjCmd, create and initialize one new ns variable} { catch {namespace delete test_ns_var} |