ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgl...@apache.org
Subject svn commit: r1297207 - /ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/JavaTest.java
Date Mon, 05 Mar 2012 20:03:13 GMT
Author: jglick
Date: Mon Mar  5 20:03:12 2012
New Revision: 1297207

URL: http://svn.apache.org/viewvc?rev=1297207&view=rev
Log:
Local test failure on XP w/ JDK 7.

Modified:
    ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/JavaTest.java

Modified: ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/JavaTest.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/JavaTest.java?rev=1297207&r1=1297206&r2=1297207&view=diff
==============================================================================
--- ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/JavaTest.java (original)
+++ ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/JavaTest.java Mon Mar  5
20:03:12 2012
@@ -254,8 +254,12 @@ public class JavaTest extends BuildFileT
         // write some stuff in the input stream to be catched by the input task
         out.write("foo\n".getBytes());
         out.flush();
-        out.write("bar\n".getBytes());
-        out.flush();
+        try {
+            out.write("bar\n".getBytes());
+            out.flush();
+        } catch (IOException x) {
+            // "Pipe closed" on XP; ignore?
+        }
 
         inputThread.join(2000);
 



Mime
View raw message