7191777: test/java/lang/ProcessBuilder/Basic.java failing intermittently due to additions for 4244896

Reviewed-by: dholmes, alanb
This commit is contained in:
Rob McKenna 2012-08-20 14:52:12 +01:00
parent d35a91d60d
commit e81dadf112

View File

@ -2228,12 +2228,7 @@ public class Basic {
p.destroy();
start = System.nanoTime();
p.waitFor(1000, TimeUnit.MILLISECONDS);
end = System.nanoTime();
// allow for the less accurate default implementation
if ((end - start) > 200000000)
fail("Test failed: waitFor took too long on a dead process.");
} catch (Throwable t) { unexpected(t); }
}