Lines Matching defs:waitFor

94         equal(p.waitFor(), 0);
646 .start().waitFor();
685 public int waitFor() throws InterruptedException {
686 return p.waitFor();
2030 p.waitFor(); // Might hang!
2187 check(p.waitFor() != 0);
2224 new ProcessBuilder(wakeupJeff).start().waitFor();
2250 int exitValue = p.waitFor();
2362 // Process.waitFor(0, TimeUnit.MILLISECONDS) work as expected.
2369 if (!p.isAlive() || p.waitFor(0, TimeUnit.MILLISECONDS)) {
2373 // give waitFor(timeout) a wide berth (2s)
2374 System.out.printf(" waitFor process: delta: %d%n",(end - start) );
2377 fail("Test failed: waitFor took too long (" + (end - start) + "ns)");
2380 p.waitFor();
2383 !p.waitFor(0, TimeUnit.MILLISECONDS))
2391 // Check that Process.waitFor(timeout, TimeUnit.MILLISECONDS)
2400 p.waitFor(10, TimeUnit.MILLISECONDS);
2404 fail("Test failed: waitFor didn't take long enough (" + (end - start) + "ns)");
2410 // Check that Process.waitFor(timeout, TimeUnit.MILLISECONDS)
2424 boolean result = p.waitFor(30L * 1000L, TimeUnit.MILLISECONDS);
2425 fail("waitFor() wasn't interrupted, its return value was: " + result);
2442 // Check that Process.waitFor(timeout, TimeUnit.MILLISECONDS)
2458 boolean result = p.waitFor(30L * 1000L, TimeUnit.MILLISECONDS);
2459 fail("waitFor() wasn't interrupted, its return value was: " + result);
2475 // Check that Process.waitFor(timeout, null) throws NPE.
2482 () -> p.waitFor(10L, null));
2484 () -> p.waitFor(0L, null));
2486 () -> p.waitFor(-1L, null));
2489 p.waitFor();
2491 () -> p.waitFor(10L, null));
2493 () -> p.waitFor(0L, null));
2495 () -> p.waitFor(-1L, null));
2499 // Check that default implementation of Process.waitFor(timeout, null) throws NPE.
2508 () -> p.waitFor(10L, null));
2510 () -> p.waitFor(0L, null));
2512 () -> p.waitFor(-1L, null));
2515 p.waitFor();
2517 () -> p.waitFor(10L, null));
2519 () -> p.waitFor(0L, null));
2521 () -> p.waitFor(-1L, null));
2526 // Process.waitFor(long, TimeUnit)
2535 p.waitFor(1000, TimeUnit.MILLISECONDS);
2539 fail("Test failed: waitFor didn't take long enough");
2543 p.waitFor(1000, TimeUnit.MILLISECONDS);
2637 exitValue = p.waitFor();