summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2017-09-05 12:42:04 (GMT)
committerdgp <dgp@users.sourceforge.net>2017-09-05 12:42:04 (GMT)
commitc77e32dbc88b079d427d3d9aaa1d79f78b92abde (patch)
tree48dabec8642537b0514fc60841ae849553aa4b5a /tests
parent1690da4a0998028bd3939d5bedf39c66c9b47d57 (diff)
parente4ed3e4c0339668b464249f10507eebcab01b31c (diff)
downloadtcl-c77e32dbc88b079d427d3d9aaa1d79f78b92abde.zip
tcl-c77e32dbc88b079d427d3d9aaa1d79f78b92abde.tar.gz
tcl-c77e32dbc88b079d427d3d9aaa1d79f78b92abde.tar.bz2
merge novem
Diffstat (limited to 'tests')
-rw-r--r--tests/basic.test15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/basic.test b/tests/basic.test
index bff9a95..7819241 100644
--- a/tests/basic.test
+++ b/tests/basic.test
@@ -224,6 +224,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} {
} {}