summaryrefslogtreecommitdiffstats
path: root/tests/parseOld.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/parseOld.test')
-rw-r--r--tests/parseOld.test14
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/parseOld.test b/tests/parseOld.test
index 504d063..7985135 100644
--- a/tests/parseOld.test
+++ b/tests/parseOld.test
@@ -6,15 +6,17 @@
# built-in commands. Sourcing this file into Tcl runs the tests and
# generates output for errors. No output means no errors were found.
#
-# 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.
+# Copyright © 1991-1993 The Regents of the University of California.
+# Copyright © 1994-1996 Sun Microsystems, Inc.
+# Copyright © 1998-1999 Scriptics Corporation.
#
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
-package require tcltest 2
-namespace import ::tcltest::*
+if {"::tcltest" ni [namespace children]} {
+ package require tcltest 2.5
+ namespace import -force ::tcltest::*
+}
::tcltest::loadTestedCommands
catch [list package require -exact Tcltest [info patchlevel]]
@@ -133,7 +135,7 @@ format %s $b
} a22b
test parseOld-4.4 {command substitution} {
set a 7.7
- if [catch {expr int($a)}] {set a foo}
+ if {[catch {expr {int($a)}}]} {set a foo}
set a
} 7.7