aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2002-10-19 19:27:24 +0000
committerAndreas Schwab <schwab@gcc.gnu.org>2002-10-19 19:27:24 +0000
commit0d8b229b8ec256eb18183d63bd7739483936c8cd (patch)
tree80fa0f314501d52b1bb92362b931a17667052c85 /gcc
parent797608d27bcdd3d561c9dc4167c627e9a7421526 (diff)
downloadgcc-0d8b229b8ec256eb18183d63bd7739483936c8cd.zip
gcc-0d8b229b8ec256eb18183d63bd7739483936c8cd.tar.gz
gcc-0d8b229b8ec256eb18183d63bd7739483936c8cd.tar.bz2
compat.exp (compat-run): Prepend "./" when $dest has no directory component.
* lib/compat.exp (compat-run): Prepend "./" when $dest has no directory component. From-SVN: r58318
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/lib/compat.exp3
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index c3a9a36..83d9bf7 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2002-10-19 Andreas Schwab <schwab@suse.de>
+
+ * lib/compat.exp (compat-run): Prepend "./" when $dest has no
+ directory component.
+
2002-10-18 Mark Mitchell <mark@codesourcery.com>
* g++.dg/inherit/thunk1.C: New test.
diff --git a/gcc/testsuite/lib/compat.exp b/gcc/testsuite/lib/compat.exp
index 1965f3d..0944ccc 100644
--- a/gcc/testsuite/lib/compat.exp
+++ b/gcc/testsuite/lib/compat.exp
@@ -96,6 +96,9 @@ proc compat-run { testname objlist dest options optstr } {
}
# Run the self-checking executable.
+ if ![string match "*/*" $dest] then {
+ set dest "./$dest"
+ }
set result [${tool}_load $dest "" ""]
set status [lindex $result 0]
if { $status == "pass" } then {