summaryrefslogtreecommitdiffstats
path: root/tests/all.tcl
diff options
context:
space:
mode:
authorjenn <jenn>2000-01-27 23:44:01 (GMT)
committerjenn <jenn>2000-01-27 23:44:01 (GMT)
commit335c1f78124d678298612ab09fed880c7042aebc (patch)
tree7ea24b8a84f6b0a46229df7a60e1cfeab0eda6e9 /tests/all.tcl
parentd8c3ee2177ba3302b1caf7fe451592c210d68212 (diff)
downloadtcl-335c1f78124d678298612ab09fed880c7042aebc.zip
tcl-335c1f78124d678298612ab09fed880c7042aebc.tar.gz
tcl-335c1f78124d678298612ab09fed880c7042aebc.tar.bz2
* library/tcltest1.0/tcltest.tcl: Changed NormalizePath to
normalizePath and exported it as a public proc. This proc creates an absolute path given the name of the variable containing the path to modify. The path is modified in place. * library/tcltest1.0/pkgIndex.tcl: Added normalizePath. * tests/all.tcl: Changed code to use normalizePath.
Diffstat (limited to 'tests/all.tcl')
-rw-r--r--tests/all.tcl11
1 files changed, 2 insertions, 9 deletions
diff --git a/tests/all.tcl b/tests/all.tcl
index 1b13adb..aca74f8 100644
--- a/tests/all.tcl
+++ b/tests/all.tcl
@@ -7,7 +7,7 @@
# Copyright (c) 1998-1999 by Scriptics Corporation.
# All rights reserved.
#
-# RCS: @(#) $Id: all.tcl,v 1.8 1999/12/04 06:16:48 hobbs Exp $
+# RCS: @(#) $Id: all.tcl,v 1.9 2000/01/27 23:44:09 jenn Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -18,14 +18,7 @@ set ::tcltest::testSingleFile false
set ::tcltest::testsDirectory [file dir [info script]]
# We need to ensure that the testsDirectory is absolute
-#
-if {[string equal relative [file pathtype $::tcltest::testsDirectory]]} {
- set cwd [pwd]
- cd $::tcltest::testsDirectory
- set ::tcltest::testsDirectory [pwd]
- cd $cwd
- unset cwd
-}
+::tcltest::normalizePath ::tcltest::testsDirectory
puts stdout "Tcl $tcl_patchLevel tests running in interp: [info nameofexecutable]"
puts stdout "Tests running in working dir: $::tcltest::testsDirectory"