Browse Source

Local test failure on XP w/ JDK 7.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1297207 13f79535-47bb-0310-9956-ffa450edef68
master
Jesse N. Glick 13 years ago
parent
commit
583f7cd1c4
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      src/tests/junit/org/apache/tools/ant/taskdefs/JavaTest.java

+ 6
- 2
src/tests/junit/org/apache/tools/ant/taskdefs/JavaTest.java View File

@@ -254,8 +254,12 @@ public class JavaTest extends BuildFileTest {
// 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);



Loading…
Cancel
Save