< prev index next >

test/java/lang/ProcessBuilder/Basic.java

Print this page
rev 14031 : 8168517: java/lang/ProcessBuilder/Basic.java failed
Reviewed-by: dholmes

*** 2256,2275 **** long end = System.nanoTime(); if ((end - start) < TimeUnit.MILLISECONDS.toNanos(10)) 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); } //---------------------------------------------------------------- // Check that Process.waitFor(timeout, TimeUnit.MILLISECONDS) // interrupt works as expected, if interrupted while waiting. --- 2256,2265 ----
< prev index next >