aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Savoye <rob@welcomehome.org>2014-06-25 16:33:08 -0600
committerRob Savoye <rob@welcomehome.org>2014-06-25 16:33:08 -0600
commit45a1dbdf9a382b63d51fd28248be206c33f7afc0 (patch)
tree55c0aed3955b72339099da1a91f3421ff8072774
parentf4d01a7e996969d10fc263aa8dc82644cd149f3a (diff)
downloaddejagnu-45a1dbdf9a382b63d51fd28248be206c33f7afc0.zip
dejagnu-45a1dbdf9a382b63d51fd28248be206c33f7afc0.tar.gz
dejagnu-45a1dbdf9a382b63d51fd28248be206c33f7afc0.tar.bz2
Fix bug were none of the relative paths were actually being used for file lookup.
-rw-r--r--ChangeLog5
-rw-r--r--runtest.exp4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 5e7e7b3..207878d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-06-25 Rob Savoye <rob.savoye@linaro.org>
+
+ * runtest.exp: (lookfor-file): Fix bug were none of the relative
+ paths were actually being used for file lookup.
+
2014-06-06 Ben Elliston <bje@gnu.org>
* depcomp, install-sh, missing: Update to latest versions.
diff --git a/runtest.exp b/runtest.exp
index bd39dd8..9f0997f 100644
--- a/runtest.exp
+++ b/runtest.exp
@@ -571,8 +571,8 @@ if {[string match "" $logname]} {
# lookfor_file -- try to find a file by searching up multiple directory levels
#
proc lookfor_file { dir name } {
- foreach x ".. ../.. ../../.. ../../../.." {
- verbose "$dir/$name" 2
+ foreach x ". .. ../.. ../../.. ../../../.." {
+ verbose "$dir/$x/$name" 2
if {[file exists [file join $dir $name]]} {
return [file join $dir $name]
}