summaryrefslogtreecommitdiffstats
path: root/tests/namespace.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2004-10-26 20:14:12 (GMT)
committerdgp <dgp@users.sourceforge.net>2004-10-26 20:14:12 (GMT)
commit02d8d08520b48fae236b2c0073b0d3e4fcc61845 (patch)
treed434a0b7fcce12b2effd71b0d201f00fc9b516ca /tests/namespace.test
parent52d8c7176f0f89ff442c950f4dea8584f15014e3 (diff)
downloadtcl-02d8d08520b48fae236b2c0073b0d3e4fcc61845.zip
tcl-02d8d08520b48fae236b2c0073b0d3e4fcc61845.tar.gz
tcl-02d8d08520b48fae236b2c0073b0d3e4fcc61845.tar.bz2
* tests/compile.test (compile-12.4): Backport test for Bug 1001997.
* tests/timer.test (timer-10.1): Backport test for Bug 1016167. * tests/tcltest.test (tcltest-12.3,4): Backport setup corrections. * tests/error.test (error-6.3,4,7,9): Backport of some tests. * tests/basic.test (basic-49.*): * tests/namespace.test (namespace-8.7): * tests/init.test (init-2.8): Updated to not rely on http package. * generic/tclThreadTest.c (ThreadEventProc): Corrected subtle bug where the returned (char *) from Tcl_GetStringResult(interp) continued to be used without copying or refcounting, while activity on the interp continued.
Diffstat (limited to 'tests/namespace.test')
-rw-r--r--tests/namespace.test9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/namespace.test b/tests/namespace.test
index daa6ecd..542f137 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.21.2.3 2004/09/30 22:45:17 dgp Exp $
+# RCS: @(#) $Id: namespace.test,v 1.21.2.4 2004/10/26 20:14:36 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 {eval namespace delete [namespace children :: test_ns_*]}