summaryrefslogtreecommitdiffstats
path: root/tests/incr-old.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/incr-old.test')
-rw-r--r--tests/incr-old.test8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/incr-old.test b/tests/incr-old.test
index 5b93268..96c68b7 100644
--- a/tests/incr-old.test
+++ b/tests/incr-old.test
@@ -13,7 +13,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: incr-old.test,v 1.9 2006/02/09 17:34:42 dgp Exp $
+# RCS: @(#) $Id: incr-old.test,v 1.10 2006/10/09 19:15:44 msofer Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -51,13 +51,13 @@ test incr-old-2.3 {incr errors} {
} 1
test incr-old-2.4 {incr errors} {
set x abc
- list [catch {incr x} msg] $msg $errorInfo
+ list [catch {incr x} msg] $msg $::errorInfo
} {1 {expected integer but got "abc"} {expected integer but got "abc"
while executing
"incr x"}}
test incr-old-2.5 {incr errors} {
set x 123
- list [catch {incr x 1a} msg] $msg $errorInfo
+ list [catch {incr x 1a} msg] $msg $::errorInfo
} {1 {expected integer but got "1a"} {expected integer but got "1a"
(reading increment)
invoked from within
@@ -66,7 +66,7 @@ test incr-old-2.6 {incr errors} -body {
proc readonly args {error "variable is read-only"}
set x 123
trace var x w readonly
- list [catch {incr x 1} msg] $msg $errorInfo
+ list [catch {incr x 1} msg] $msg $::errorInfo
} -match glob -result {1 {can't set "x": variable is read-only} {*variable is read-only
while executing
*