8168517: java/lang/ProcessBuilder/Basic.java failed
authorrriggs
Mon, 31 Oct 2016 13:57:28 -0400
changeset 41825 6dd7bb19cef2
parent 41824 ebb396875090
child 41826 b35ee9b35b09
8168517: java/lang/ProcessBuilder/Basic.java failed Reviewed-by: dholmes
jdk/test/java/lang/ProcessBuilder/Basic.java
--- a/jdk/test/java/lang/ProcessBuilder/Basic.java	Mon Oct 31 10:34:31 2016 -0700
+++ b/jdk/test/java/lang/ProcessBuilder/Basic.java	Mon Oct 31 13:57:28 2016 -0400
@@ -2404,16 +2404,6 @@
                 fail("Test failed: waitFor didn't take long enough (" + (end - start) + "ns)");
 
             p.destroy();
-
-            start = System.nanoTime();
-            p.waitFor(8, TimeUnit.SECONDS);
-            end = System.nanoTime();
-
-            int exitValue = p.exitValue();
-
-            if ((end - start) > TimeUnit.SECONDS.toNanos(7))
-                fail("Test failed: waitFor took too long on a dead process. (" + (end - start) + "ns)"
-                + ", exitValue: " + exitValue);
         } catch (Throwable t) { unexpected(t); }
 
         //----------------------------------------------------------------