summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2017-09-02 21:14:55 (GMT)
committerdgp <dgp@users.sourceforge.net>2017-09-02 21:14:55 (GMT)
commit39efd5474116799b123d4082bca3a9c30c7b8b82 (patch)
tree15fca97e8314f5b3fd69e08ad31dd4d63f76e222
parentcc912b73a02978ef98876321877d1b923a4a22e5 (diff)
downloadtcl-39efd5474116799b123d4082bca3a9c30c7b8b82.zip
tcl-39efd5474116799b123d4082bca3a9c30c7b8b82.tar.gz
tcl-39efd5474116799b123d4082bca3a9c30c7b8b82.tar.bz2
Add test
-rw-r--r--tests/basic.test15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/basic.test b/tests/basic.test
index 91e4d6c..e4b46fd 100644
--- a/tests/basic.test
+++ b/tests/basic.test
@@ -221,6 +221,21 @@ test basic-15.1 {Tcl_CreateObjCommand, new cmd goes into a namespace specified i
list [test_ns_basic::cmd] \
[namespace delete test_ns_basic]
} {::test_ns_basic {}}
+test basic-15.2 {Tcl_CreateObjCommand, Bug 0e4d88b650} -setup {
+ proc deleter {ns args} {
+ namespace delete $ns
+ }
+ namespace eval n {
+ proc p {} {}
+ }
+ trace add command n::p delete [list [namespace which deleter] [namespace current]::n]
+} -body {
+ proc n::p {} {}
+} -cleanup {
+ namespace delete n
+ rename deleter {}
+}
+
test basic-16.1 {TclInvokeStringCommand} {emptyTest} {
} {}