Skip to content

Commit

Permalink
Fix SystemModulesTest2 when linkable runtime but no packaged modules
Browse files Browse the repository at this point in the history
  • Loading branch information
jerboaa committed Nov 5, 2024
1 parent 3b3699f commit 8f0203a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/jdk/tools/jlink/runtimeImage/SystemModulesTest2.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ void runTest(Helper helper, boolean isLinkableRuntime) throws Exception {
.validatingModule("java.base")
.addExtraOption("--disable-plugin")
.addExtraOption("system-modules");
if (isLinkableRuntime) {
builder.setLinkableRuntime();
}
Path runtimeImageLinkTarget = createJavaImageRuntimeLink(builder.build());
JImageValidator.validate(runtimeImageLinkTarget.resolve("lib").resolve("modules"),
Collections.emptyList(),
Expand Down

0 comments on commit 8f0203a

Please sign in to comment.