test/java/lang/ProcessBuilder/Basic.java

Print this page

        

*** 2226,2241 **** 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 { --- 2226,2236 ----