Skip to content

Commit

Permalink
Fix JLinkTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
jerboaa committed Dec 9, 2024
1 parent 15116a6 commit 2f1934f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/jdk/tools/jlink/JLinkTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,15 @@
import java.lang.module.ModuleDescriptor;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.spi.ToolProvider;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
import java.util.stream.Stream;

import jdk.tools.jlink.plugin.Plugin;
import jdk.tools.jlink.internal.PluginRepository;
import jdk.tools.jlink.plugin.Plugin;
import tests.Helper;
import tests.JImageGenerator;

Expand Down Expand Up @@ -135,11 +133,11 @@ public static void main(String[] args) throws Exception {

{
// No --module-path specified. --add-modules ALL-MODULE-PATH specified.
String imageDir = "bug8189777-all-module-path";
String imageDir = "bug8345259-all-module-path";
JImageGenerator.getJLinkTask()
.output(helper.createNewImageDir(imageDir))
.addMods("ALL-MODULE-PATH")
.call().assertSuccess();
.call().assertFailure();
}

{
Expand Down

0 comments on commit 2f1934f

Please sign in to comment.