summaryrefslogtreecommitdiffstats
path: root/tests/namespace.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2014-02-12 18:46:03 (GMT)
committerdgp <dgp@users.sourceforge.net>2014-02-12 18:46:03 (GMT)
commitd212e3e191d59aea969df3987426e85d086da364 (patch)
tree46ba53ddc8cfbc14e892a9bcdee955b00ec341e7 /tests/namespace.test
parent08700ad2348944e47107ddbcbf18bbd7d861668d (diff)
parentc3c6e18ae396cac45fbc5d94ce9e2e7b7cc2ffc3 (diff)
downloadtcl-d212e3e191d59aea969df3987426e85d086da364.zip
tcl-d212e3e191d59aea969df3987426e85d086da364.tar.gz
tcl-d212e3e191d59aea969df3987426e85d086da364.tar.bz2
merge 8.5
Diffstat (limited to 'tests/namespace.test')
-rw-r--r--tests/namespace.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/namespace.test b/tests/namespace.test
index 4eecac1..b59e09e 100644
--- a/tests/namespace.test
+++ b/tests/namespace.test
@@ -556,6 +556,15 @@ test namespace-13.1 {DeleteImportedCmd, deletes imported cmds} {
lappend l [info commands ::test_ns_import::*]
}
} {::test_ns_import::cmd1 {}}
+test namespace-13.2 {DeleteImportedCmd, Bug a4494e28ed} {
+ # Will panic if still buggy
+ namespace eval src {namespace export foo; proc foo {} {}}
+ namespace eval dst {namespace import [namespace parent]::src::foo}
+ trace add command src::foo delete \
+ "[list namespace delete [namespace current]::dst] ;#"
+ proc src::foo {} {}
+ namespace delete src
+} {}
test namespace-14.1 {TclGetNamespaceForQualName, absolute names} {
catch {namespace delete {*}[namespace children :: test_ns_*]}