OSDN Git Service

* lib/compat.exp (compat-run): Prepend "./" when $dest has no
authorschwab <schwab@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 19 Oct 2002 19:27:24 +0000 (19:27 +0000)
committerschwab <schwab@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 19 Oct 2002 19:27:24 +0000 (19:27 +0000)
directory component.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58318 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/lib/compat.exp

index c3a9a36..83d9bf7 100644 (file)
@@ -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.
index 1965f3d..0944ccc 100644 (file)
@@ -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 {