summaryrefslogtreecommitdiffstats
path: root/tests/string.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/string.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/string.test')
-rw-r--r--tests/string.test12
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/string.test b/tests/string.test
index 9461fa6..4ccc5e5 100644
--- a/tests/string.test
+++ b/tests/string.test
@@ -6,13 +6,16 @@
#
# Copyright (c) 1991-1993 The Regents of the University of California.
# Copyright (c) 1994 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.
#
-# RCS: @(#) $Id: string.test,v 1.1.2.2 1998/12/03 23:59:13 stanton Exp $
+# RCS: @(#) $Id: string.test,v 1.1.2.3 1999/03/11 18:50:11 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]
+}
test string-1.1 {string compare} {
string compare abcde abdef
@@ -382,3 +385,8 @@ test string-15.1 {error conditions} {
test string-15.2 {error conditions} {
list [catch {string} msg] $msg
} {1 {wrong # args: should be "string option arg ?arg ...?"}}
+
+# cleanup
+::test::cleanupTests
+return
+