You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2014/01/11 15:12:45 UTC
svn commit: r1557405 -
/commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/issues/Exec49Test.java
Author: sebb
Date: Sat Jan 11 14:12:45 2014
New Revision: 1557405
URL: http://svn.apache.org/r1557405
Log:
Continuum seems to be hanging in this test; try and debug it
Modified:
commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/issues/Exec49Test.java
Modified: commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/issues/Exec49Test.java
URL: http://svn.apache.org/viewvc/commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/issues/Exec49Test.java?rev=1557405&r1=1557404&r2=1557405&view=diff
==============================================================================
--- commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/issues/Exec49Test.java (original)
+++ commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/issues/Exec49Test.java Sat Jan 11 14:12:45 2014
@@ -68,12 +68,13 @@ public class Exec49Test {
int x;
final PipedInputStream pis = new PipedInputStream(pipedOutputStream);
while ((x = pis.read()) >= 0) {
- // System.out.println("pis.available() " + pis.available());
- // System.out.println("x " + x);
+ System.out.println("pis.available() " + pis.available());
+ System.out.println("x " + x);
}
pis.close();
- handler.waitFor();
+ handler.waitFor(10000);
+ handler.getExitValue(); // will fail if process has not finished
}
}
@@ -107,12 +108,13 @@ public class Exec49Test {
int x;
final PipedInputStream pis = new PipedInputStream(pipedOutputStream);
while ((x = pis.read()) >= 0) {
- // System.out.println("pis.available() " + pis.available());
- // System.out.println("x " + x);
+ System.out.println("pis.available() " + pis.available());
+ System.out.println("x " + x);
}
pis.close();
- handler.waitFor();
+ handler.waitFor(10000);
+ handler.getExitValue(); // will fail if process has not finished
}
}