From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25049 invoked by alias); 25 Jun 2008 00:52:03 -0000 Received: (qmail 24923 invoked by uid 22791); 25 Jun 2008 00:52:03 -0000 X-Spam-Check-By: sourceware.org Received: from rv-out-0708.google.com (HELO rv-out-0708.google.com) (209.85.198.249) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 25 Jun 2008 00:51:27 +0000 Received: by rv-out-0708.google.com with SMTP id f25so9201742rvb.50 for ; Tue, 24 Jun 2008 17:51:25 -0700 (PDT) Received: by 10.141.171.6 with SMTP id y6mr15744746rvo.84.1214355085826; Tue, 24 Jun 2008 17:51:25 -0700 (PDT) Received: by 10.114.15.11 with HTTP; Tue, 24 Jun 2008 17:51:25 -0700 (PDT) Message-ID: <17c6771e0806241751q25d39598sf08857a9ed83a55e@mail.gmail.com> Date: Wed, 25 Jun 2008 00:52:00 -0000 From: "Andrew John Hughes" To: "David Herron" Subject: Re: Am I doing something wrong? Cc: mauve-discuss@sources.redhat.com In-Reply-To: <4861947D.7070705@sun.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4861947D.7070705@sun.com> X-Google-Sender-Auth: 5f188705dfb8c8da X-IsSubscribed: yes Mailing-List: contact mauve-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: mauve-discuss-owner@sourceware.org X-SW-Source: 2008-q2/txt/msg00005.txt.bz2 On 25/06/2008, David Herron wrote: > Just to try out Mauve I'm running it on my OS X machine with Apple's Java. > ./configure --with-vm=/Library/Java/Home/bin/java > make > java Harness -verbose -showpasses -compile -vm java gnu.testlet > > I figure since y'all haven't changed Harness.java in 2 yrs (to any > significant change) that it must be working fine and that there's some kind > of driver error on my part. > > I get a bunch of messages saying FAIL: One of the dependencies failed to > compile > > Then it throws this:- > Exception in thread "main" > java.lang.StringIndexOutOfBoundsException: String index out > of range: -48 > at > java.lang.AbstractStringBuilder.setLength(AbstractStringBuilder.java:146) > at > java.lang.StringBuffer.setLength(StringBuffer.java:154) > at Harness.processFolder(Harness.java:1123) > at Harness.processFolder(Harness.java:1153) > at Harness.processFolder(Harness.java:1153) > at Harness.processTest(Harness.java:899) > at Harness.runAllTests(Harness.java:706) > at Harness.main(Harness.java:184) > > > ---> sb.setLength(sb.length() - fullPath.length() - 1); > > So that calculation is going negative, and inserting println's I see > sb.length() is 0 ... > > I changed that to something like this > > sb.setLength( > (sb.length() - fullPath.length() - 1) > 0 > ? sb.length() - fullPath.length() - 1 > : 0 > ); > > > And then this failed (line 1208) > nextTest = nextTest.substring(0, nextTest.length() - 5); > > > FWIW, we run Mauve in a very similar manner on builder.classpath.org: exec > Log.Std 2>&1 ./configure --with-ecj-jar=/usr/share/java/ecj.jar --with-vm=jamvm && make && xvfb-run jamvm Harness gnu.testlet -vm jamvm -showpasses -timeout 180000 (this is testing jamvm instead of java, and uses xvfb-run to avoid needing an X display). I did run Mauve a while ago on OS X and I don't remember having any problems. Things may have changed though. I believe twisti has done a lot of recent work on the harness, but I don't think it's committed yet. -- Andrew :-) Support Free Java! Contribute to GNU Classpath and the OpenJDK http://www.gnu.org/software/classpath http://openjdk.java.net PGP Key: 94EFD9D8 (http://subkeys.pgp.net) Fingerprint: F8EF F1EA 401E 2E60 15FA 7927 142C 2591 94EF D9D8