public inbox for mauve-discuss@sourceware.org
 help / color / mirror / Atom feed
* Patch: PrintWriter.jdk11
@ 2004-07-23 10:24 Jeroen Frijters
  0 siblings, 0 replies; only message in thread
From: Jeroen Frijters @ 2004-07-23 10:24 UTC (permalink / raw)
  To: mauve-discuss

[-- Attachment #1: Type: text/plain, Size: 199 bytes --]

Hi,

The attached patch fixes the PrintWriter.jdk11 test on platforms that
don't
use \n as the line.separator.

I would appreciate it if someone would apply it.

Thanks.

Regards,
Jeroen

[-- Attachment #2: PrintWriter.jdk11.patch --]
[-- Type: application/octet-stream, Size: 1114 bytes --]

Index: gnu/testlet/java/io/PrintWriter/jdk11.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/java/io/PrintWriter/jdk11.java,v
retrieving revision 1.3
diff -u -r1.3 jdk11.java
--- gnu/testlet/java/io/PrintWriter/jdk11.java	9 Aug 2003 19:17:48 -0000	1.3
+++ gnu/testlet/java/io/PrintWriter/jdk11.java	23 Jul 2004 10:22:57 -0000
@@ -109,8 +109,18 @@
 	harness.check(true, "flush()");
 	pw1.close();
 	harness.check(true, "close()");
-	String tst = "truefalseXABC3.141.4143765537ObjectStringXYZABCABQJKLNO\n" +
-					"true\nfalse\nX\nABC\n3.14\n1.414\n37\n65537\nObjectString\nXYZ\n";
+	String nl = System.getProperty("line.separator");
+	String tst = "truefalseXABC3.141.4143765537ObjectStringXYZABCABQJKLNO" + nl +
+			"true" + nl +
+			"false" + nl +
+			"X" + nl +
+			"ABC" + nl +
+			"3.14" + nl +
+			"1.414" + nl +
+			"37" + nl +
+			"65537" + nl +
+			"ObjectString" + nl +
+			"XYZ" + nl;
 	harness.check(baos1.toString(), tst, "All characters printed okay");
 	harness.debug("Final output:" + baos1.toString());
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-07-23 10:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-23 10:24 Patch: PrintWriter.jdk11 Jeroen Frijters

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).