summaryrefslogtreecommitdiffstats
path: root/tests/namespace.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2008-05-21 13:26:14 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2008-05-21 13:26:14 (GMT)
commit422670d42865358d830bc1a65fc7aa48904a2d71 (patch)
tree4fd121267a29b8a26506b15326ed9b38bb167344 /tests/namespace.test
parente47e090ebc6534d30664a39311da929831681b02 (diff)
downloadtcl-422670d42865358d830bc1a65fc7aa48904a2d71.zip
tcl-422670d42865358d830bc1a65fc7aa48904a2d71.tar.gz
tcl-422670d42865358d830bc1a65fc7aa48904a2d71.tar.bz2
Backport of fixes to Tcl_SetNamespaceUnknownHandler
Diffstat (limited to 'tests/namespace.test')
-rw-r--r--tests/namespace.test11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/namespace.test b/tests/namespace.test
index e445189..efb72db 100644
--- a/tests/namespace.test
+++ b/tests/namespace.test
@@ -11,7 +11,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: namespace.test,v 1.70 2007/12/13 15:26:06 dgp Exp $
+# RCS: @(#) $Id: namespace.test,v 1.70.2.1 2008/05/21 13:26:17 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -2619,6 +2619,15 @@ test namespace-52.11 {unknown: with TCL_EVAL_INVOKE} -setup {
rename unknown.save ::unknown
namespace eval :: [list namespace unknown $handler]
} -result SUCCESS
+test namespace-52.12 {unknown: error case must not reset handler} -body {
+ namespace eval foo {
+ namespace unknown ok
+ catch {namespace unknown {{}{}{}}}
+ namespace unknown
+ }
+} -cleanup {
+ namespace delete foo
+} -result ok
# cleanup
catch {rename cmd1 {}}