compat.exp (compat-run): Prepend "./" when $dest has no directory component.
authorAndreas Schwab <schwab@suse.de>
Sat, 19 Oct 2002 19:27:24 +0000 (19:27 +0000)
committerAndreas Schwab <schwab@gcc.gnu.org>
Sat, 19 Oct 2002 19:27:24 +0000 (19:27 +0000)
* lib/compat.exp (compat-run): Prepend "./" when $dest has no
directory component.

From-SVN: r58318

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

index c3a9a36fdaf27ce849f52b4fd230d6c2c309b2bd..83d9bf70cc5c237ecd98f501ed945d804d5a3adf 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 1965f3d6ea9e98d0419a83f8159b25d7d63f2585..0944ccc95d8e6aae0f5432e875f939968c092549 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 {