summaryrefslogtreecommitdiffstats
path: root/tests/error.test
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2006-01-18 19:48:10 (GMT)
committerdgp <dgp@noemail.net>2006-01-18 19:48:10 (GMT)
commit17904b921a1e0a0d0d755684fd940b321c2b9419 (patch)
tree1547bf1979ad086cf06e0263a52ef20a1ef90bcd /tests/error.test
parent7a43e034bda4ac9b9b061ddea8173032e50096ba (diff)
downloadtcl-17904b921a1e0a0d0d755684fd940b321c2b9419.zip
tcl-17904b921a1e0a0d0d755684fd940b321c2b9419.tar.gz
tcl-17904b921a1e0a0d0d755684fd940b321c2b9419.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. FossilOrigin-Name: 18f74f654834cfb386547cafe8bbabd169f02480
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 {