public inbox for java-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Andreas Tobler <toa@pop.agri.ch>
To: Java Patches <java-patches@gcc.gnu.org>
Subject: [patch] fix testsuite failures
Date: Mon, 03 Jul 2006 20:02:00 -0000	[thread overview]
Message-ID: <44A977C1.5010508@pop.agri.ch> (raw)

Hello,

since this patch http://gcc.gnu.org/ml/gcc-cvs/2006-06/msg00816.html
we now have libgcj-tools-4.2.0.jar and libgcj-4.2.0.jar in the build 
path. The testsuite was looking for libgcj-*.jar to find the right jar 
file. Now this doesn't work anymore and causes many funny failures.

This patch is looking now for the libgcj-$version.jar and should fix the 
fallout.

Ok for main?


Andreas

2006-07-03  Andreas Tobler  <a.tobler@schweiz.ch>

	* testsuite/lib/libjava.exp (libjava_init): Look for libgcj-$version.jar
	instead of libgcj-*.jar.


Index: testsuite/lib/libjava.exp
===================================================================
--- testsuite/lib/libjava.exp   (revision 115147)
+++ testsuite/lib/libjava.exp   (working copy)
@@ -144,6 +144,7 @@
      global tool_root_dir
      global libjava_libgcc_s_path
      global target_triplet
+    global libjava_version

      # We set LC_ALL and LANG to C so that we get the same error 
messages as expected.
      setenv LC_ALL C
@@ -164,7 +165,14 @@
      }

      # Find the libgcj jar file.
-    set libgcj_jar [glob $objdir/../libgcj-*.jar]
+
+    set tmp [eval exec "$GCJ_UNDER_TEST -v 2>@ stdout"]
+    regexp " version \[^\n\r\]*" $tmp version
+    set libjava_version [lindex $version 1]
+
+    verbose "version: $libjava_version"
+
+    set libgcj_jar [glob $objdir/../libgcj-$libjava_version.jar]
      verbose "jar file is $libgcj_jar"

      # FIXME: This finds libgcj.spec for the default multilib.

             reply	other threads:[~2006-07-03 20:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-03 20:02 Andreas Tobler [this message]
2006-07-04 19:01 ` Bryce McKinlay
2006-07-04 20:19   ` Andreas Tobler
2006-07-04 20:39     ` Bryce McKinlay
2006-07-04 20:50       ` Andreas Tobler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44A977C1.5010508@pop.agri.ch \
    --to=toa@pop.agri.ch \
    --cc=java-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).