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,120 **** 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); } static void checkRuntimeOutput(OutputAnalyzer output, String expected) throws Exception { output.shouldContain(expected); if (expected.equals(PASS_RESULT) || --- 100,113 ---- throw new RuntimeException("Unknown option: " + subCaseId); } } static void testset_0(String jar, String[] noAppClasses, String[] appClasses) throws Exception { ! // Unverifiable classes won't be included in the CDS archive. ! // Dumping should not fail. ! OutputAnalyzer output = TestCommon.dump(jar, appClasses); ! output.shouldHaveExitValue(0); } static void checkRuntimeOutput(OutputAnalyzer output, String expected) throws Exception { output.shouldContain(expected); if (expected.equals(PASS_RESULT) ||
test/hotspot/jtreg/runtime/appcds/VerifierTest.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File