From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4890 invoked by alias); 24 Jul 2007 19:37:47 -0000 Received: (qmail 4882 invoked by uid 22791); 24 Jul 2007 19:37:47 -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; Tue, 24 Jul 2007 19:37:44 +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 l6OJbgQJ024363 for ; Tue, 24 Jul 2007 15:37:42 -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 l6OJbgxV016869 for ; Tue, 24 Jul 2007 15:37:42 -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 l6OJbfFw028449 for ; Tue, 24 Jul 2007 15:37:41 -0400 Message-ID: <46A65505.1090508@redhat.com> Date: Tue, 24 Jul 2007 19:37: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="------------070006000604060303050807" 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/msg00051.txt.bz2 This is a multi-part message in MIME format. --------------070006000604060303050807 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 290 Another small patch that fixes a test's expectations, in gnu/testlet/java/util/logging/XMLFormatter/formatMessage.java 2007-07-24 Joshua Sumali * gnu/testlet/java/util/logging/XMLFormatter/formatMessage.java: (EXPECTED_PREFIX): Fixed expected string. --------------070006000604060303050807 Content-Type: text/plain; name="diff_formatMessage" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diff_formatMessage" Content-length: 1447 #P mauve Index: gnu/testlet/java/util/logging/XMLFormatter/formatMessage.java =================================================================== RCS file: /cvs/mauve/mauve/gnu/testlet/java/util/logging/XMLFormatter/formatMessage.java,v retrieving revision 1.1 diff -u -r1.1 formatMessage.java --- gnu/testlet/java/util/logging/XMLFormatter/formatMessage.java 26 Feb 2004 19:41:42 -0000 1.1 +++ gnu/testlet/java/util/logging/XMLFormatter/formatMessage.java 24 Jul 2007 19:07:29 -0000 @@ -28,6 +28,7 @@ import java.util.logging.LogRecord; import java.util.logging.XMLFormatter; +import java.util.TimeZone; /** * @author Sascha Brawer @@ -58,6 +59,11 @@ // Check #2. rec = new LogRecord(Level.INFO, "foobar"); + + //Need to force the default time zone to UTC or else + //the comparison uses system time zone and makes the tests + //break. + TimeZone.setDefault(TimeZone.getTimeZone("UTC")); rec.setMillis(1234567); rec.setSequenceNumber(42); rec.setThreadID(21); @@ -124,9 +130,11 @@ } + //1234567 milliseconds is only 20 minutes and + //34 seconds (past the Epoch, UTC time). private static final String EXPECTED_PREFIX = "\n" - + " 1970-01-01T01:20:34\n" + + " 1970-01-01T00:20:34\n" + " 1234567\n" + " 42\n" + " INFO\n"; --------------070006000604060303050807--