From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16160 invoked by alias); 13 Jul 2007 20:22:25 -0000 Received: (qmail 16152 invoked by uid 22791); 13 Jul 2007 20:22:24 -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, 13 Jul 2007 20:22:20 +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 l6DKMIW2030581 for ; Fri, 13 Jul 2007 16:22:18 -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 l6DKMIvT003502 for ; Fri, 13 Jul 2007 16:22:18 -0400 Received: from to-dhcp16.toronto.redhat.com (to-dhcp16.toronto.redhat.com [172.16.14.116]) by pobox.toronto.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id l6DKMHqV021870 for ; Fri, 13 Jul 2007 16:22:17 -0400 Message-ID: <4697DEF9.4000409@redhat.com> Date: Fri, 13 Jul 2007 20:22:00 -0000 From: Joshua Sumali User-Agent: Thunderbird 2.0.0.4 (X11/20070615) MIME-Version: 1.0 To: mauve-patches@sources.redhat.com Subject: FYI: Test Fix Content-Type: multipart/mixed; boundary="------------000501020605050207090807" 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/msg00048.txt.bz2 This is a multi-part message in MIME format. --------------000501020605050207090807 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 428 This patch fixed a couple of tests in gnu/testlet/java/text/SimpleDateFormat It just needed a simple time zone change to match the locale. Now passes on openJDK. 2007-07-13 Joshua Sumali * gnu/testlet/java/text/SimpleDateFormat/getDateFormatSymbols.java (test): Fixed incorrect test. * gnu/testlet/java/text/SimpleDateFormat/setDateFormatSymbols.java (test): Fixed incorrect test. --------------000501020605050207090807 Content-Type: text/x-patch; name="getDateFormatSymbols.patch.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="getDateFormatSymbols.patch.diff" Content-length: 1107 #P mauve Index: gnu/testlet/java/text/SimpleDateFormat/getDateFormatSymbols.java =================================================================== RCS file: /cvs/mauve/mauve/gnu/testlet/java/text/SimpleDateFormat/getDateFormatSymbols.java,v retrieving revision 1.1 diff -u -r1.1 getDateFormatSymbols.java --- gnu/testlet/java/text/SimpleDateFormat/getDateFormatSymbols.java 11 Nov 2004 09:37:20 -0000 1.1 +++ gnu/testlet/java/text/SimpleDateFormat/getDateFormatSymbols.java 13 Jul 2007 20:16:01 -0000 @@ -28,6 +28,7 @@ import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; +import java.util.TimeZone; /** * Some checks for the getDateFormatSymbols() method in the SimpleDateFormat @@ -47,6 +48,7 @@ // symbols, so updating them should not affect the results of the // date formatter... SimpleDateFormat sdf = new SimpleDateFormat("E", Locale.UK); + sdf.setTimeZone(TimeZone.getTimeZone("UTC")); Date jan1_2005 = new Date(1104537600000L); harness.check(sdf.format(jan1_2005), "Sat"); DateFormatSymbols s = sdf.getDateFormatSymbols(); --------------000501020605050207090807 Content-Type: text/x-patch; name="setDateFormatSymbols.patch.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="setDateFormatSymbols.patch.diff" Content-length: 1075 #P mauve Index: gnu/testlet/java/text/SimpleDateFormat/setDateFormatSymbols.java =================================================================== RCS file: /cvs/mauve/mauve/gnu/testlet/java/text/SimpleDateFormat/setDateFormatSymbols.java,v retrieving revision 1.1 diff -u -r1.1 setDateFormatSymbols.java --- gnu/testlet/java/text/SimpleDateFormat/setDateFormatSymbols.java 11 Nov 2004 09:37:20 -0000 1.1 +++ gnu/testlet/java/text/SimpleDateFormat/setDateFormatSymbols.java 13 Jul 2007 20:14:26 -0000 @@ -28,6 +28,7 @@ import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; +import java.util.TimeZone; /** * Some checks for the setDateFormatSymbols() method in the SimpleDateFormat @@ -45,6 +46,7 @@ { // check that changing the short weekdays does work... SimpleDateFormat sdf = new SimpleDateFormat("E", Locale.UK); + sdf.setTimeZone(TimeZone.getTimeZone("UTC")); Date jan1_2005 = new Date(1104537600000L); harness.check(sdf.format(jan1_2005), "Sat"); DateFormatSymbols s = sdf.getDateFormatSymbols(); --------------000501020605050207090807--