8030166: java/lang/ProcessBuilder/Basic.java fails intermittently: waitFor took too long
authorrobm
Fri, 01 Aug 2014 15:34:55 +0100
changeset 25804 4ae4525723a5
parent 25803 ab8f8e106d0a
child 25805 0bc2aa4aadbe
8030166: java/lang/ProcessBuilder/Basic.java fails intermittently: waitFor took too long Reviewed-by: rriggs
jdk/test/java/lang/ProcessBuilder/Basic.java
--- a/jdk/test/java/lang/ProcessBuilder/Basic.java	Fri Aug 01 14:57:15 2014 +0100
+++ b/jdk/test/java/lang/ProcessBuilder/Basic.java	Fri Aug 01 15:34:55 2014 +0100
@@ -2269,9 +2269,9 @@
                 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();