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.test12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/incr-old.test b/tests/incr-old.test
index 662fdc7..ed457cf 100644
--- a/tests/incr-old.test
+++ b/tests/incr-old.test
@@ -6,15 +6,15 @@
# into Tcl runs the tests and generates output for errors.
# No output means no errors were found.
#
-# Copyright © 1991-1993 The Regents of the University of California.
-# Copyright © 1994-1996 Sun Microsystems, Inc.
-# Copyright © 1998-1999 Scriptics Corporation.
+# Copyright (c) 1991-1993 The Regents of the University of California.
+# Copyright (c) 1994-1996 Sun Microsystems, Inc.
+# Copyright (c) 1998-1999 by Scriptics Corporation.
#
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
-if {"::tcltest" ni [namespace children]} {
- package require tcltest 2.5
+if {[lsearch [namespace children] ::tcltest] == -1} {
+ package require tcltest 2
namespace import -force ::tcltest::*
}
@@ -63,7 +63,7 @@ test incr-old-2.5 {incr errors} {
test incr-old-2.6 {incr errors} -body {
proc readonly args {error "variable is read-only"}
set x 123
- trace add var x write readonly
+ trace var x w readonly
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