mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-01 18:50:17 +00:00
8030166: java/lang/ProcessBuilder/Basic.java fails intermittently: waitFor took too long
Reviewed-by: rriggs
This commit is contained in:
parent
12b137c7c0
commit
063b7f5dc9
@ -2269,9 +2269,9 @@ public class Basic {
|
||||
fail("Test failed: Process exited prematurely");
|
||||
}
|
||||
long end = System.nanoTime();
|
||||
// give waitFor(timeout) a wide berth (100ms)
|
||||
// give waitFor(timeout) a wide berth (200ms)
|
||||
// Old AIX machines my need a little longer.
|
||||
if ((end - start) > 100000000L * (AIX.is() ? 4 : 1))
|
||||
if ((end - start) > 200000000L * (AIX.is() ? 2 : 1))
|
||||
fail("Test failed: waitFor took too long (" + (end - start) + "ns)");
|
||||
|
||||
p.destroy();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user