summaryrefslogtreecommitdiffstats
path: root/tests/error.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2006-01-18 19:48:11 (GMT)
committerdgp <dgp@users.sourceforge.net>2006-01-18 19:48:11 (GMT)
commitfa839dce12c20b16a8736752fd93063afc2c6446 (patch)
tree1547bf1979ad086cf06e0263a52ef20a1ef90bcd /tests/error.test
parent73cefe9821b18e74d301da6d70d9d2709cacfe7f (diff)
downloadtcl-fa839dce12c20b16a8736752fd93063afc2c6446.zip
tcl-fa839dce12c20b16a8736752fd93063afc2c6446.tar.gz
tcl-fa839dce12c20b16a8736752fd93063afc2c6446.tar.bz2
Fix test suite bugs exposed by -singleproc 1 -debug 1 run. Each test
file needs to avoid stomping on the assumptions of other files, and protect against getting stomped as well.
Diffstat (limited to 'tests/error.test')
-rw-r--r--tests/error.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/error.test b/tests/error.test
index d8bfaba..9f55de8 100644
--- a/tests/error.test
+++ b/tests/error.test
@@ -11,13 +11,14 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: error.test,v 1.14 2006/01/11 17:34:54 dgp Exp $
+# RCS: @(#) $Id: error.test,v 1.15 2006/01/18 19:48:11 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
namespace import -force ::tcltest::*
}
+namespace eval ::tcl::test::error {
proc foo {} {
global errorInfo
set a [catch {format [error glorp2]} b]
@@ -220,7 +221,6 @@ test error-6.9 {catch must reset error state} {
list $errorCode
} {NONE}
-namespace eval ::tcl::test::error {
test error-7.0 {Bug 1397843} -body {
variable cmds
proc EIWrite args {