diff options
author | hershey <hershey> | 1999-03-11 18:49:22 (GMT) |
---|---|---|
committer | hershey <hershey> | 1999-03-11 18:49:22 (GMT) |
commit | 07d6012fb42480a22f42f53b9d73eb838d5c67d7 (patch) | |
tree | 0462404b0b65394e3ef76acdc52cc18966fb9789 /tests/info.test | |
parent | 4a327a6afdf45b23c8606d5f3d5a51b2b7876384 (diff) | |
download | tcl-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/info.test')
-rw-r--r-- | tests/info.test | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/info.test b/tests/info.test index d45d44c..f464df6 100644 --- a/tests/info.test +++ b/tests/info.test @@ -6,13 +6,16 @@ # # Copyright (c) 1991-1994 The Regents of the University of California. # Copyright (c) 1994-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. # -# RCS: @(#) $Id: info.test,v 1.1.2.2 1998/09/24 23:59:26 stanton Exp $ +# RCS: @(#) $Id: info.test,v 1.1.2.3 1999/03/11 18:49:45 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] +} # Set up namespaces needed to test operation of "info args", "info body", # "info default", and "info procs" with imported procedures. @@ -498,5 +501,8 @@ test info-20.5 {miscellaneous error conditions} { list [catch {info s} msg] $msg } {1 {ambiguous option "s": must be args, body, cmdcount, commands, complete, default, exists, globals, hostname, level, library, loaded, locals, nameofexecutable, patchlevel, procs, script, sharedlibextension, tclversion, or vars}} +# cleanup catch {namespace delete test_ns_info1 test_ns_info2} +::test::cleanupTests return + |