summaryrefslogtreecommitdiffstats
path: root/tests/compExpr-old.test
diff options
context:
space:
mode:
authorhershey <hershey>1999-03-11 18:49:22 (GMT)
committerhershey <hershey>1999-03-11 18:49:22 (GMT)
commit07d6012fb42480a22f42f53b9d73eb838d5c67d7 (patch)
tree0462404b0b65394e3ef76acdc52cc18966fb9789 /tests/compExpr-old.test
parent4a327a6afdf45b23c8606d5f3d5a51b2b7876384 (diff)
downloadtcl-07d6012fb42480a22f42f53b9d73eb838d5c67d7.zip
tcl-07d6012fb42480a22f42f53b9d73eb838d5c67d7.tar.gz
tcl-07d6012fb42480a22f42f53b9d73eb838d5c67d7.tar.bz2
Updated the testsuite to use "test" namespace and commandline args
to control verbose level and which tests get run. Tests now work from any working dir.
Diffstat (limited to 'tests/compExpr-old.test')
-rw-r--r--tests/compExpr-old.test10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/compExpr-old.test b/tests/compExpr-old.test
index 848a59e..f201982 100644
--- a/tests/compExpr-old.test
+++ b/tests/compExpr-old.test
@@ -7,13 +7,16 @@
# output for errors. No output means no errors were found.
#
# Copyright (c) 1996-1997 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.
#
-# SCCS: @(#) compExpr-old.test 1.47 97/12/19 11:57:15
+# RCS: @(#) $Id: compExpr-old.test,v 1.1.2.2 1999/03/11 18:49:28 hershey Exp $
-if {[string compare test [info procs test]] == 1} then {source defs}
+if {[lsearch [namespace children] ::test] == -1} {
+ source [file join [pwd] [file dirname [info script]] defs.tcl]
+}
if {([catch {expr T1()} msg] == 1) && ($msg == {unknown math function "T1"})} {
set gotT1 0
@@ -666,5 +669,8 @@ test expr-19.1 {expr and interpreter result object resetting} {
p
} 3
+# cleanup
unset a
+::test::cleanupTests
return
+