test/java/lang/ProcessBuilder/Basic.java

Print this page

        

@@ -2225,17 +2225,10 @@
             long end = System.nanoTime();
             if ((end - start) < 500000000)
                 fail("Test failed: waitFor didn't take long enough");
 
             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); }
     }
 
     static void closeStreams(Process p) {
         try {