commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1723864 - /commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/issues/Exec65Test.java
Date Sat, 09 Jan 2016 16:56:02 GMT
Author: sebb
Date: Sat Jan  9 16:56:02 2016
New Revision: 1723864

URL: http://svn.apache.org/viewvc?rev=1723864&view=rev
Log:
Re-apply Java 1.5 fix from r1723464

Modified:
    commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/issues/Exec65Test.java

Modified: commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/issues/Exec65Test.java
URL: http://svn.apache.org/viewvc/commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/issues/Exec65Test.java?rev=1723864&r1=1723863&r2=1723864&view=diff
==============================================================================
--- commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/issues/Exec65Test.java
(original)
+++ commons/proper/exec/trunk/src/test/java/org/apache/commons/exec/issues/Exec65Test.java
Sat Jan  9 16:56:02 2016
@@ -88,9 +88,8 @@ public class Exec65Test extends Abstract
         Thread.sleep(WATCHDOG_TIMEOUT);
 
         process.destroy();
-        while (process.isAlive()) {
-            Thread.sleep(100);
-        }
+        
+        process.waitFor();
 
         assertTrue(process.exitValue() != 0);
     }



Mime
View raw message