test/hotspot/jtreg/runtime/appcds/VerifierTest.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File open Cdiff test/hotspot/jtreg/runtime/appcds/VerifierTest.java

test/hotspot/jtreg/runtime/appcds/VerifierTest.java

Print this page

        

*** 100,117 **** throw new RuntimeException("Unknown option: " + subCaseId); } } static void testset_0(String jar, String[] noAppClasses, String[] appClasses) throws Exception { ! // Dumping should fail if the IgnoreUnverifiableClassesDuringDump ! // option is not enabled. OutputAnalyzer output = TestCommon.dump(jar, appClasses, CDS_LOGGING, "-XX:+UnlockDiagnosticVMOptions", "-XX:-IgnoreUnverifiableClassesDuringDump"); ! output.shouldContain("Please remove the unverifiable classes"); ! output.shouldHaveExitValue(1); // By default, bad classes should be ignored during dumping. TestCommon.testDump(jar, appClasses); } --- 100,116 ---- throw new RuntimeException("Unknown option: " + subCaseId); } } static void testset_0(String jar, String[] noAppClasses, String[] appClasses) throws Exception { ! // IgnoreUnverifiableClassesDuringDump has been obsoleted. ! // Unverifiable classes won't be included in the CDS archive. OutputAnalyzer output = TestCommon.dump(jar, appClasses, CDS_LOGGING, "-XX:+UnlockDiagnosticVMOptions", "-XX:-IgnoreUnverifiableClassesDuringDump"); ! output.shouldHaveExitValue(0); // By default, bad classes should be ignored during dumping. TestCommon.testDump(jar, appClasses); }
test/hotspot/jtreg/runtime/appcds/VerifierTest.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File