8302117: IgnoreUnrecognizedVMOptions flag causes failure in ArchiveHeapTestClass

Reviewed-by: dholmes
This commit is contained in:
Ramkumar Sunderbabu 2023-02-10 05:58:12 +00:00 committed by David Holmes
parent e245620f6f
commit 723433dbeb

View File

@ -173,7 +173,7 @@ public class ArchiveHeapTestClass {
static void testProductBuild() throws Exception {
OutputAnalyzer output;
output = dumpHelloOnly("-XX:ArchiveHeapTestClass=NoSuchClass");
output = dumpHelloOnly("-XX:-IgnoreUnrecognizedVMOptions", "-XX:ArchiveHeapTestClass=NoSuchClass");
mustFail(output, "VM option 'ArchiveHeapTestClass' is develop and is available only in debug version of VM.");
}
}