From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22119 invoked by alias); 29 Jun 2007 19:38:49 -0000 Received: (qmail 22111 invoked by uid 22791); 29 Jun 2007 19:38:48 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 29 Jun 2007 19:38:46 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l5TJchfG018453 for ; Fri, 29 Jun 2007 15:38:43 -0400 Received: from pobox.toronto.redhat.com (pobox.toronto.redhat.com [172.16.14.4]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l5TJchnG011804 for ; Fri, 29 Jun 2007 15:38:43 -0400 Received: from [172.16.14.161] (toothpaste.toronto.redhat.com [172.16.14.161]) by pobox.toronto.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id l5TJch4t017379 for ; Fri, 29 Jun 2007 15:38:43 -0400 Subject: FYI: Test Fix From: Tania Bento To: mauve-patches Content-Type: multipart/mixed; boundary="=-deMpdhjlYgSNerqu46ON" Date: Fri, 29 Jun 2007 19:38:00 -0000 Message-Id: <1183145922.18659.11.camel@toothpaste.toronto.redhat.com> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 (2.10.1-4.fc7) X-IsSubscribed: yes Mailing-List: contact mauve-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: mauve-patches-owner@sourceware.org X-SW-Source: 2007/txt/msg00036.txt.bz2 --=-deMpdhjlYgSNerqu46ON Content-Type: text/plain Content-Transfer-Encoding: 7bit Content-length: 222 This patch fixes an incorrect test in gnu.testlet.java.lang.Integer.parseInt. 2007-06-29 Tania Bento * gnu/testlet/java/lang/Integer/parsetInt.java: (test): Fixed incorrect test. --=-deMpdhjlYgSNerqu46ON Content-Disposition: attachment; filename=patch.diff Content-Type: text/x-patch; name=patch.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-length: 830 Index: gnu/testlet/java/lang/Integer/parseInt.java =================================================================== RCS file: /cvs/mauve/mauve/gnu/testlet/java/lang/Integer/parseInt.java,v retrieving revision 1.1 diff -u -r1.1 parseInt.java --- gnu/testlet/java/lang/Integer/parseInt.java 21 Jul 2002 14:48:33 -0000 1.1 +++ gnu/testlet/java/lang/Integer/parseInt.java 29 Jun 2007 19:33:44 -0000 @@ -95,14 +95,15 @@ harness.check(true); } + // In JDK1.7, '+' is considered a valid character. try { i = Integer.parseInt("+10"); - harness.fail("Leading '+' must throw NumberFormatException"); + harness.check(true); } catch (NumberFormatException nfe) { - harness.check(true); + harness.fail("Leading '+' does not throw NumberFormatException"); } try --=-deMpdhjlYgSNerqu46ON--