* FYI: Test Fix
@ 2007-07-24 19:37 Joshua Sumali
2007-09-12 20:53 ` FYI: Makefile and configure fix Joshua Sumali
0 siblings, 1 reply; 2+ messages in thread
From: Joshua Sumali @ 2007-07-24 19:37 UTC (permalink / raw)
To: mauve-patches
[-- Attachment #1: Type: text/plain, Size: 290 bytes --]
Another small patch that fixes a test's expectations, in
gnu/testlet/java/util/logging/XMLFormatter/formatMessage.java
2007-07-24 Joshua Sumali <jsumali@redhat.com>
* gnu/testlet/java/util/logging/XMLFormatter/formatMessage.java:
(EXPECTED_PREFIX): Fixed expected string.
[-- Attachment #2: diff_formatMessage --]
[-- Type: text/plain, Size: 1447 bytes --]
#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 <a href="mailto:brawer@dandelis.ch">Sascha Brawer</a>
@@ -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 =
"<record>\n"
- + " <date>1970-01-01T01:20:34</date>\n"
+ + " <date>1970-01-01T00:20:34</date>\n"
+ " <millis>1234567</millis>\n"
+ " <sequence>42</sequence>\n"
+ " <level>INFO</level>\n";
^ permalink raw reply [flat|nested] 2+ messages in thread
* FYI: Makefile and configure fix
2007-07-24 19:37 FYI: Test Fix Joshua Sumali
@ 2007-09-12 20:53 ` Joshua Sumali
0 siblings, 0 replies; 2+ messages in thread
From: Joshua Sumali @ 2007-09-12 20:53 UTC (permalink / raw)
To: mauve-patches
[-- Attachment #1: Type: text/plain, Size: 437 bytes --]
This patch is to fix the 'make dist' target. It now works and produces a
mauve dated dist tarball.
2007-09-12 Joshua Sumali <jsumali@redhat.com>
* Makefile.am: Added source files for 'make dist' target.
* Makefile.in: Regenerated.
* aclocal.m4: Regenerated.
* configure.in: Added tar-pax check, needed for long filenames
included in the dist tarball.
* configure: Regenerated.
[-- Attachment #2: mauve-dist.diff --]
[-- Type: text/x-patch, Size: 744 bytes --]
--- mauve.clean/Makefile.am 2007-09-12 16:23:35.000000000 -0400
+++ mauve/Makefile.am 2007-09-12 16:42:51.000000000 -0400
@@ -9,6 +9,10 @@
check_DATA = $(STAMP)
+EXTRA_DIST = Harness.java RunnerProcess.java gnu junit
+
+VERSION = ${shell date +%F}
+
harness_files = \
Harness.java \
RunnerProcess.java \
--- mauve.clean/configure.in 2007-09-12 16:23:35.000000000 -0400
+++ mauve/configure.in 2007-09-12 16:42:52.000000000 -0400
@@ -1,6 +1,7 @@
dnl Process this with autoconf to create configure
-AC_INIT(gnu/testlet/Testlet.java)
-AM_INIT_AUTOMAKE(mauve, 0.0)
+AC_INIT([mauve],[0.0])
+AC_CONFIG_SRCDIR([gnu/testlet/Testlet.java])
+AM_INIT_AUTOMAKE([tar-pax])
dnl Check path and file separator types
ACX_CHECK_PATHNAME_STYLE_DOS
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-09-12 20:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-24 19:37 FYI: Test Fix Joshua Sumali
2007-09-12 20:53 ` FYI: Makefile and configure fix Joshua Sumali
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).