8168517: java/lang/ProcessBuilder/Basic.java failed
Reviewed-by: dholmes
This commit is contained in:
parent
882dd28a12
commit
9e7023e2a9
@ -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); }
|
||||
|
||||
//----------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user