diff options
author | David Billinghurst <David.Billinghurst@riotinto.com> | 2002-05-08 12:38:55 +0000 |
---|---|---|
committer | David Billinghurst <billingd@gcc.gnu.org> | 2002-05-08 12:38:55 +0000 |
commit | 61b8fbecf711195d0b9be7cc56fd2ed5030b97e0 (patch) | |
tree | e27b6b640bcb2416d793b4a91ced0978dec5295b | |
parent | 3ae9b37906740ca534b6b404aa439d76ea7292a8 (diff) | |
download | gcc-61b8fbecf711195d0b9be7cc56fd2ed5030b97e0.zip gcc-61b8fbecf711195d0b9be7cc56fd2ed5030b97e0.tar.gz gcc-61b8fbecf711195d0b9be7cc56fd2ed5030b97e0.tar.bz2 |
libjava.exp (test_libjava_from_javac): Append .exe to executable names.
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
-rw-r--r-- | libjava/ChangeLog | 5 | ||||
-rw-r--r-- | libjava/testsuite/lib/libjava.exp | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 5a06d0e..ebf72c1 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -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 diff --git a/libjava/testsuite/lib/libjava.exp b/libjava/testsuite/lib/libjava.exp index e083fe0..4717c06 100644 --- a/libjava/testsuite/lib/libjava.exp +++ b/libjava/testsuite/lib/libjava.exp @@ -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 } |