harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r801389 - /harmony/enhanced/classlib/branches/java6/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/PipedWriterTest.java
Date Wed, 05 Aug 2009 19:52:11 GMT
Author: hindessm
Date: Wed Aug  5 19:52:10 2009
New Revision: 801389

URL: http://svn.apache.org/viewvc?rev=801389&view=rev
Log:
The first test in test_flushAfterClose fails on the RI but only in the
(broken) edge case were the PipedWriter is unconnected.  I'm going to
ignore this edge case so that the test passes on the RI and Harmony.
See "[#HARMONY-6293] [classlib][luni] PipedWriter.flush should throw
IOException if pipe is closed (Java 6 only)".

Modified:
    harmony/enhanced/classlib/branches/java6/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/PipedWriterTest.java

Modified: harmony/enhanced/classlib/branches/java6/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/PipedWriterTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/PipedWriterTest.java?rev=801389&r1=801388&r2=801389&view=diff
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/PipedWriterTest.java
(original)
+++ harmony/enhanced/classlib/branches/java6/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/PipedWriterTest.java
Wed Aug  5 19:52:10 2009
@@ -151,7 +151,8 @@
      */
     public void test_flushAfterClose() throws Exception {
     	
-    	pw = new PipedWriter();
+        PipedReader pr = new PipedReader();
+        pw = new PipedWriter(pr);
     	pw.close();
     	try {
             pw.flush();
@@ -160,7 +161,7 @@
             // expected
         }
     	
-        PipedReader pr = new PipedReader();
+        pr = new PipedReader();
         pw = new PipedWriter(pr);
         pr.close();
 	



Mime
View raw message