Skip to content

Commit

Permalink
More test clean-ups
Browse files Browse the repository at this point in the history
  • Loading branch information
jerboaa committed Dec 12, 2024
1 parent bb69989 commit 9ba004c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion test/jdk/tools/jlink/basic/AllModulePath.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
* @build jdk.test.lib.process.ProcessTools
* jdk.test.lib.process.OutputAnalyzer
* jdk.test.lib.compiler.CompilerUtils
* @run testng/othervm -Duser.lang=en -Duser.country=US AllModulePath
* @run testng/othervm -Duser.language=en -Duser.country=US AllModulePath
*/
public class AllModulePath {

Expand Down
14 changes: 6 additions & 8 deletions test/jdk/tools/jlink/basic/BasicTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,18 +77,16 @@ public static void main(String[] args) throws Throwable {
new BasicTest().run();
}

private static boolean isApplicable() {
if (!JMODS_EXIST) {
if (!LINKABLE_RUNTIME) {
System.err.println("Test skipped. Not a linkable runtime and no JMODs");
return false;
}
private static boolean isExplodedJDKImage() {
if (!JMODS_EXIST && !LINKABLE_RUNTIME) {
System.err.println("Test skipped. Not a linkable runtime and no JMODs");
return true;
}
return true;
return false;
}

public void run() throws Throwable {
if (!isApplicable()) {
if (isExplodedJDKImage()) {
return;
}

Expand Down

0 comments on commit 9ba004c

Please sign in to comment.