summaryrefslogtreecommitdiffstats
path: root/tests/namespace.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2011-06-02 14:55:53 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2011-06-02 14:55:53 (GMT)
commitfa1b6f48f8a0add0e7075e4468f141c3f33e8f33 (patch)
tree8cec4f70262ff9a85d0a6d6120dafc75d8d0a36b /tests/namespace.test
parentec4576ad2add9240b3b00273bd355224e5a40d7b (diff)
parent3fc9e52c2e53da2a3a0c4c0a6badc6742035c3d9 (diff)
downloadtcl-fa1b6f48f8a0add0e7075e4468f141c3f33e8f33.zip
tcl-fa1b6f48f8a0add0e7075e4468f141c3f33e8f33.tar.gz
tcl-fa1b6f48f8a0add0e7075e4468f141c3f33e8f33.tar.bz2
[Bug 3185407]: Extend the set of epochs that are potentially bumped (in
TclInvalidateNsCmdLookup) when a command is created, for a slight performance drop (in some circumstances) and improved semantics.
Diffstat (limited to 'tests/namespace.test')
-rw-r--r--tests/namespace.test16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/namespace.test b/tests/namespace.test
index 9d7cb59..f4e50bc 100644
--- a/tests/namespace.test
+++ b/tests/namespace.test
@@ -2517,6 +2517,22 @@ test namespace-51.17 {resolution epoch handling: Bug 2898722} -setup {
catch {rename ::c {}}
unset result
} -result {A 1 . A A . B B . B B . B B . B B . G G}
+test namespace-51.18 {Bug 3185407} -setup {
+ namespace eval ::test_ns_1 {}
+} -body {
+ namespace eval ::test_ns_1 {
+ variable result {}
+ namespace eval ns {proc foo {} {}}
+ namespace eval ns2 {proc foo {} {}}
+ namespace path {ns ns2}
+ variable x foo
+ lappend result [namespace which $x]
+ proc foo {} {}
+ lappend result [namespace which $x]
+ }
+} -cleanup {
+ namespace delete ::test_ns_1
+} -result {::test_ns_1::ns::foo ::test_ns_1::foo}
# TIP 181 - namespace unknown tests
test namespace-52.1 {unknown: default handler ::unknown} {