libjava.exp (test_libjava_from_javac): Append .exe to executable names.
authorDavid Billinghurst <David.Billinghurst@riotinto.com>
Wed, 8 May 2002 12:38:55 +0000 (12:38 +0000)
committerDavid Billinghurst <billingd@gcc.gnu.org>
Wed, 8 May 2002 12:38:55 +0000 (12:38 +0000)
2002-05-09  David.Billinghurst  <David.Billinghurst@riotinto.com>

* testsuite/lib/libjava.exp (test_libjava_from_javac):
Append .exe to executable names.  Fix for cygwin.

From-SVN: r53291

libjava/ChangeLog
libjava/testsuite/lib/libjava.exp

index 5a06d0e62219929cb1a81e985a68de7e7861c09b..ebf72c1269608936b8e740f11e522e6e47d4fe8d 100644 (file)
@@ -1,3 +1,8 @@
+2002-05-09  David.Billinghurst  <David.Billinghurst@riotinto.com>
+
+       * testsuite/lib/libjava.exp (test_libjava_from_javac):
+       Append .exe to executable names.  Fix for cygwin.
+
 2002-05-08  Alexandre Oliva  <aoliva@redhat.com>
 
        * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
index e083fe05d972fa973377d1f82e148c0891abb997..4717c06b4cb6bc4aa06b28119fae4cf665ede43b 100644 (file)
@@ -683,7 +683,10 @@ proc test_libjava_from_javac { options srcfile compile_args inpfile resultfile e
     } else {
        set type executable
        lappend largs "additional_flags=--main=$main_name"
-       set executable "${objdir}/$main_name"
+       # DOS/win32 targets default to .exe if no suffix is given
+        # We then try to delete a file that doesn't exist.  It is
+       # simpler to add the suffix everywhere.
+       set executable "${objdir}/${main_name}.exe"
        set mode link
     }