aboutsummaryrefslogtreecommitdiff
path: root/runtest.exp
diff options
context:
space:
mode:
authorBen Elliston <bje@gnu.org>2006-05-22 04:38:42 +0000
committerBen Elliston <bje@gnu.org>2006-05-22 04:38:42 +0000
commitb6feeb81729c431a93264a920e3d4ac93f6b96f5 (patch)
tree5f67575c57bbb6029582d6478d1255249bbfd4a4 /runtest.exp
parent752549198513cf5f7b2fed288216285d01a4a699 (diff)
downloaddejagnu-b6feeb81729c431a93264a920e3d4ac93f6b96f5.zip
dejagnu-b6feeb81729c431a93264a920e3d4ac93f6b96f5.tar.gz
dejagnu-b6feeb81729c431a93264a920e3d4ac93f6b96f5.tar.bz2
* lib/framework.exp (open_logs): Use file join where applicable.
* lib/libgloss.exp (libgloss_link_flags, newlib_link_flags, newlib_include_flags, g++_link_flags, libstdc++_link_flags, get_multilibs, winsup_include_flags, winsup_link_flags): Likewise. * lib/utils.exp (which): Likewise. * runtest.exp (search_and_load_file, lookfor_file, load_tool_init): Likewise.
Diffstat (limited to 'runtest.exp')
-rwxr-xr-xruntest.exp16
1 files changed, 8 insertions, 8 deletions
diff --git a/runtest.exp b/runtest.exp
index 492b2b2..19d7b41 100755
--- a/runtest.exp
+++ b/runtest.exp
@@ -340,7 +340,7 @@ proc search_and_load_file { type filelist dirlist } {
foreach dir $dirlist {
foreach initfile $filelist {
verbose "Looking for $type ${dir}/${initfile}" 2
- if [file exists ${dir}/${initfile}] {
+ if [file exists [file join ${dir} ${initfile}]] {
set found 1
set error ""
if { ${type} != "library file" } {
@@ -573,8 +573,8 @@ if [string match "" $logname] {
proc lookfor_file { dir name } {
foreach x ".. ../.. ../../.. ../../../.." {
verbose "$dir/$name" 2
- if [file exists $dir/$name] {
- return $dir/$name
+ if [file exists [file join $dir $name]] {
+ return [file join $dir $name]
}
set dir [remote_file build dirname $dir]
}
@@ -638,7 +638,7 @@ if [expr [string match "." $objdir] || [string match $srcdir $objdir]] {
# Well, this just demonstrates the real problem...
if ![info exists tool_root_dir] {
set tool_root_dir [file dirname $objdir]
- if [file exists "$tool_root_dir/testsuite"] {
+ if [file exists [file join $tool_root_dir testsuite]] {
set tool_root_dir [file dirname $tool_root_dir]
}
}
@@ -686,9 +686,9 @@ if [expr { $build_triplet == "" && $host_triplet == ""} ] {
# find config.guess
foreach dir "$libdir $libdir/libexec $libdir/.. $execpath $srcdir $srcdir/.. $srcdir/../.." {
verbose "Looking for ${dir}/config.guess" 2
- if [file exists ${dir}/config.guess] {
- set config_guess ${dir}/config.guess
- verbose "Found ${dir}/config.guess"
+ if [file exists [file join ${dir} config.guess]] {
+ set config_guess [file join [${dir} config.guess]]
+ verbose "Found [file join ${dir} config.guess]"
break
}
}
@@ -933,7 +933,7 @@ proc load_tool_init { file } {
set loaded_libs($file) ""
- if [file exists ${srcdir}/lib/$file] {
+ if [file exists [file join ${srcdir} lib $file]] {
verbose "Loading library file ${srcdir}/lib/$file"
if { [catch "uplevel #0 source ${srcdir}/lib/$file"] == 1 } {
send_error "ERROR: tcl error sourcing library file ${srcdir}/lib/$file.\n"