8168517: java/lang/ProcessBuilder/Basic.java failed

Reviewed-by: dholmes
This commit is contained in:
Roger Riggs 2016-10-31 13:57:28 -04:00
parent 882dd28a12
commit 9e7023e2a9

View File

@ -2404,16 +2404,6 @@ public class Basic {
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); }
//----------------------------------------------------------------