diff options
author | dgp <dgp@users.sourceforge.net> | 2004-10-02 04:21:38 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2004-10-02 04:21:38 (GMT) |
commit | ec917053061e438dba385646ae15104397cd6dfa (patch) | |
tree | fe057425206591083b49370c32e543cc760f7650 | |
parent | a4f55f2e8217331b1246d87b5244116fbe7be28b (diff) | |
download | tcl-ec917053061e438dba385646ae15104397cd6dfa.zip tcl-ec917053061e438dba385646ae15104397cd6dfa.tar.gz tcl-ec917053061e438dba385646ae15104397cd6dfa.tar.bz2 |
* tests/namespace.test (namespace-8.7): Another test for save/restore
of ::errorInfo and ::errorCode during global namespace teardown.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | tests/namespace.test | 9 |
2 files changed, 13 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2004-10-02 Don Porter <dgp@users.sourceforge.net> + + * tests/namespace.test (namespace-8.7): Another test for save/restore + of ::errorInfo and ::errorCode during global namespace teardown. + 2004-10-01 Donal K. Fellows <donal.k.fellows@man.ac.uk> * generic/tclProc.c (TclObjGetFrame, Tcl_UplevelObjCmd): diff --git a/tests/namespace.test b/tests/namespace.test index 2765f61..ce99f75 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.39 2004/09/30 23:06:49 dgp Exp $ +# RCS: @(#) $Id: namespace.test,v 1.40 2004/10/02 04:21:49 dgp Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest 2 @@ -211,6 +211,13 @@ test namespace-8.6 {TclTeardownNamespace: preserve errorInfo; errorCode values} } {bar invoked from within "slave eval error foo bar baz"} +test namespace-8.7 {TclTeardownNamespace: preserve errorInfo; errorCode values} { + interp create slave + slave eval {trace add execution error leave {namespace delete :: ;#}} + catch {slave eval error foo bar baz} + interp delete slave + set ::errorCode +} baz test namespace-9.1 {Tcl_Import, empty import pattern} { catch {namespace delete {expand}[namespace children :: test_ns_*]} |