7191777: test/java/lang/ProcessBuilder/Basic.java failing intermittently due to additions for 4244896
authorrobm
Mon, 20 Aug 2012 14:52:12 +0100
changeset 13581 b3fe3cd75b37
parent 13580 5caed720417e
child 13582 16f0af616ea0
7191777: test/java/lang/ProcessBuilder/Basic.java failing intermittently due to additions for 4244896 Reviewed-by: dholmes, alanb
jdk/test/java/lang/ProcessBuilder/Basic.java
--- a/jdk/test/java/lang/ProcessBuilder/Basic.java	Mon Aug 20 07:59:26 2012 +0800
+++ b/jdk/test/java/lang/ProcessBuilder/Basic.java	Mon Aug 20 14:52:12 2012 +0100
@@ -2228,12 +2228,7 @@
 
             p.destroy();
 
-            start = System.nanoTime();
             p.waitFor(1000, TimeUnit.MILLISECONDS);
-            end = System.nanoTime();
-            // allow for the less accurate default implementation
-            if ((end - start) > 200000000)
-                fail("Test failed: waitFor took too long on a dead process.");
         } catch (Throwable t) { unexpected(t); }
     }