test/hotspot/jtreg/runtime/appcds/jigsaw/PatchModule/CustomPackage.java
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
*** old/test/hotspot/jtreg/runtime/appcds/jigsaw/PatchModule/CustomPackage.java Mon Apr 9 12:06:54 2018
--- new/test/hotspot/jtreg/runtime/appcds/jigsaw/PatchModule/CustomPackage.java Mon Apr 9 12:06:54 2018
*** 68,83 ****
--- 68,84 ----
TestCommon.list("javax/naming/myspi/NamingManager"),
"--patch-module=java.naming=" + moduleJar,
"-Xlog:class+load",
"-Xlog:class+path=info",
"PatchMain", "javax.naming.myspi.NamingManager");
TestCommon.checkDump(output, "Preload Warning: Cannot find javax/naming/myspi/NamingManager");
+ output.shouldHaveExitValue(1)
+ .shouldContain("Cannot use the following option when dumping the shared archive: --patch-module");
TestCommon.run(
"-XX:+UnlockDiagnosticVMOptions",
"--patch-module=java.naming=" + moduleJar,
"-Xlog:class+load",
"-Xlog:class+path=info",
"PatchMain", "javax.naming.myspi.NamingManager")
! .assertNormalExit("I pass!");
! .assertSilentlyDisabledCDS(0, "I pass!");
}
}
test/hotspot/jtreg/runtime/appcds/jigsaw/PatchModule/CustomPackage.java
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File