提交 c6ee3193 编写于 作者: R robm

8030166: java/lang/ProcessBuilder/Basic.java fails intermittently: waitFor took too long

Reviewed-by: rriggs
上级 e6e654b9
......@@ -2246,9 +2246,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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册