8307653: Adjust delay time and gc log argument in TestAbortOnVMOperationTimeout

Reviewed-by: dholmes, dcubed
This commit is contained in:
Guoxiong Li 2023-05-11 18:21:30 +00:00
parent 15358636cf
commit 4f355c3525

@ -26,7 +26,7 @@ import jdk.test.lib.process.*;
/*
* @test TestAbortOnVMOperationTimeout
* @bug 8181143 8269523
* @bug 8181143 8269523 8307653
* @summary Check abort on VM timeout is working
* @requires vm.flagless
* @library /test/lib
@ -51,11 +51,9 @@ public class TestAbortOnVMOperationTimeout {
return;
}
// These should definitely pass: more than a minute is enough for Serial to act.
// The values are deliberately non-round to trip off periodic task granularity.
for (int delay : new int[]{63423, 12388131}) {
testWith(delay, true);
}
// This should definitely pass: more than 3 minutes is enough for Serial to act.
// The value is deliberately non-round to trip off periodic task granularity.
testWith(183423, true);
// These should fail: Serial is not very fast but we have seen the test
// execute as quickly as 2ms!
@ -72,7 +70,7 @@ public class TestAbortOnVMOperationTimeout {
"-Xmx256m",
"-XX:+UseSerialGC",
"-XX:-CreateCoredumpOnCrash",
"-Xlog:gc",
"-Xlog:gc*=info",
"TestAbortOnVMOperationTimeout",
"foo"
);