summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorjenn <jenn@noemail.net>2000-01-27 23:44:01 (GMT)
committerjenn <jenn@noemail.net>2000-01-27 23:44:01 (GMT)
commit0b886e3cfabc980ebd7932ecfbd9adf64aad2f5e (patch)
tree7ea24b8a84f6b0a46229df7a60e1cfeab0eda6e9 /library
parent162f3ad71c72fee1cc48978f8d6bce27099c2e8e (diff)
downloadtcl-0b886e3cfabc980ebd7932ecfbd9adf64aad2f5e.zip
tcl-0b886e3cfabc980ebd7932ecfbd9adf64aad2f5e.tar.gz
tcl-0b886e3cfabc980ebd7932ecfbd9adf64aad2f5e.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. FossilOrigin-Name: 336bed6b79456dc2ce2fbe4a35f58de0e6afde21
Diffstat (limited to 'library')
-rw-r--r--library/tcltest/pkgIndex.tcl3
-rw-r--r--library/tcltest/tcltest.tcl12
-rw-r--r--library/tcltest1.0/pkgIndex.tcl3
-rw-r--r--library/tcltest1.0/tcltest.tcl12
4 files changed, 16 insertions, 14 deletions
diff --git a/library/tcltest/pkgIndex.tcl b/library/tcltest/pkgIndex.tcl
index 205cbbb..7a58882 100644
--- a/library/tcltest/pkgIndex.tcl
+++ b/library/tcltest/pkgIndex.tcl
@@ -14,4 +14,5 @@ package ifneeded tcltest 1.0 [list tclPkgSetup $dir tcltest 1.0 \
::tcltest::removeDirectory ::tcltest::removeFile \
::tcltest::restoreState ::tcltest::saveState ::tcltest::test \
::tcltest::threadReap ::tcltest::viewFile ::tcltest::grep \
- ::tcltest::getMatchingFiles ::tcltest::loadTestedCommands}}}]
+ ::tcltest::getMatchingFiles ::tcltest::loadTestedCommands \
+ ::tcltest::normalizePath }}}]
diff --git a/library/tcltest/tcltest.tcl b/library/tcltest/tcltest.tcl
index 3f09055..950f3f4 100644
--- a/library/tcltest/tcltest.tcl
+++ b/library/tcltest/tcltest.tcl
@@ -12,7 +12,7 @@
# Copyright (c) 1998-1999 by Scriptics Corporation.
# All rights reserved.
#
-# RCS: @(#) $Id: tcltest.tcl,v 1.20 1999/11/23 22:59:13 stanton Exp $
+# RCS: @(#) $Id: tcltest.tcl,v 1.21 2000/01/27 23:44:07 jenn Exp $
package provide tcltest 1.0
@@ -24,7 +24,7 @@ namespace eval tcltest {
set procList [list test cleanupTests saveState restoreState \
normalizeMsg makeFile removeFile makeDirectory removeDirectory \
viewFile bytestring safeFetch threadReap getMatchingFiles \
- loadTestedCommands]
+ loadTestedCommands normalizePath]
foreach proc $procList {
namespace export $proc
}
@@ -803,7 +803,7 @@ proc ::tcltest::CheckDirectory {rw dir errMsg} {
}
}
-# ::tcltest::NormalizePath --
+# ::tcltest::normalizePath --
#
# This procedure resolves any symlinks in the path thus creating a
# path without internal redirection. It assumes that the incoming
@@ -816,7 +816,7 @@ proc ::tcltest::CheckDirectory {rw dir errMsg} {
# The path is modified in place.
#
-proc ::tcltest::NormalizePath {pathVar} {
+proc ::tcltest::normalizePath {pathVar} {
upvar $pathVar path
set oldpwd [pwd]
@@ -1016,7 +1016,7 @@ proc ::tcltest::processCmdLineArgs {} {
file mkdir $::tcltest::temporaryDirectory
}
- NormalizePath ::tcltest::temporaryDirectory
+ normalizePath ::tcltest::temporaryDirectory
# Set the ::tcltest::testsDirectory to the arg of -testdir, if
# given.
@@ -1041,7 +1041,7 @@ proc ::tcltest::processCmdLineArgs {} {
exit 1
}
- NormalizePath ::tcltest::testsDirectory
+ normalizePath ::tcltest::testsDirectory
# Save the names of files that already exist in
# the output directory.
diff --git a/library/tcltest1.0/pkgIndex.tcl b/library/tcltest1.0/pkgIndex.tcl
index 205cbbb..7a58882 100644
--- a/library/tcltest1.0/pkgIndex.tcl
+++ b/library/tcltest1.0/pkgIndex.tcl
@@ -14,4 +14,5 @@ package ifneeded tcltest 1.0 [list tclPkgSetup $dir tcltest 1.0 \
::tcltest::removeDirectory ::tcltest::removeFile \
::tcltest::restoreState ::tcltest::saveState ::tcltest::test \
::tcltest::threadReap ::tcltest::viewFile ::tcltest::grep \
- ::tcltest::getMatchingFiles ::tcltest::loadTestedCommands}}}]
+ ::tcltest::getMatchingFiles ::tcltest::loadTestedCommands \
+ ::tcltest::normalizePath }}}]
diff --git a/library/tcltest1.0/tcltest.tcl b/library/tcltest1.0/tcltest.tcl
index 3f09055..950f3f4 100644
--- a/library/tcltest1.0/tcltest.tcl
+++ b/library/tcltest1.0/tcltest.tcl
@@ -12,7 +12,7 @@
# Copyright (c) 1998-1999 by Scriptics Corporation.
# All rights reserved.
#
-# RCS: @(#) $Id: tcltest.tcl,v 1.20 1999/11/23 22:59:13 stanton Exp $
+# RCS: @(#) $Id: tcltest.tcl,v 1.21 2000/01/27 23:44:07 jenn Exp $
package provide tcltest 1.0
@@ -24,7 +24,7 @@ namespace eval tcltest {
set procList [list test cleanupTests saveState restoreState \
normalizeMsg makeFile removeFile makeDirectory removeDirectory \
viewFile bytestring safeFetch threadReap getMatchingFiles \
- loadTestedCommands]
+ loadTestedCommands normalizePath]
foreach proc $procList {
namespace export $proc
}
@@ -803,7 +803,7 @@ proc ::tcltest::CheckDirectory {rw dir errMsg} {
}
}
-# ::tcltest::NormalizePath --
+# ::tcltest::normalizePath --
#
# This procedure resolves any symlinks in the path thus creating a
# path without internal redirection. It assumes that the incoming
@@ -816,7 +816,7 @@ proc ::tcltest::CheckDirectory {rw dir errMsg} {
# The path is modified in place.
#
-proc ::tcltest::NormalizePath {pathVar} {
+proc ::tcltest::normalizePath {pathVar} {
upvar $pathVar path
set oldpwd [pwd]
@@ -1016,7 +1016,7 @@ proc ::tcltest::processCmdLineArgs {} {
file mkdir $::tcltest::temporaryDirectory
}
- NormalizePath ::tcltest::temporaryDirectory
+ normalizePath ::tcltest::temporaryDirectory
# Set the ::tcltest::testsDirectory to the arg of -testdir, if
# given.
@@ -1041,7 +1041,7 @@ proc ::tcltest::processCmdLineArgs {} {
exit 1
}
- NormalizePath ::tcltest::testsDirectory
+ normalizePath ::tcltest::testsDirectory
# Save the names of files that already exist in
# the output directory.