summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2014-02-08 07:54:21 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2014-02-08 07:54:21 (GMT)
commitc0726f8f4f4673c0edb782e1dd24e9489fab93d6 (patch)
treea2c25a30318c9b3b690cc56b74cd1e45cfb7d794 /tests
parent39ddd8c91b11194bc3b71b9db2dfbc63e4c8fa41 (diff)
parentb6ae0212a194c6c55a0c05a0f2194213da433583 (diff)
downloadtcl-c0726f8f4f4673c0edb782e1dd24e9489fab93d6.zip
tcl-c0726f8f4f4673c0edb782e1dd24e9489fab93d6.tar.gz
tcl-c0726f8f4f4673c0edb782e1dd24e9489fab93d6.tar.bz2
merge trunk
Diffstat (limited to 'tests')
-rw-r--r--tests/namespace.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/namespace.test b/tests/namespace.test
index f6688f1..8c4b81c 100644
--- a/tests/namespace.test
+++ b/tests/namespace.test
@@ -558,6 +558,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_*]}