Skip to content

Commit

Permalink
8273774: CDSPluginTest should only expect classes_nocoops.jsa exists …
Browse files Browse the repository at this point in the history
…on supported 64-bit platforms

Backport-of: 83020617e70d40a42029720534af561f8af8bce2
  • Loading branch information
MBaesken committed Apr 30, 2024
1 parent 51502b9 commit 47ad3b4
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions test/jdk/tools/jlink/plugins/CDSPluginTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@

import tests.Helper;

import jtreg.SkippedException;

/* @test
* @bug 8264322
* @summary Test the --generate-cds-archive plugin
Expand All @@ -49,6 +51,9 @@ public class CDSPluginTest {

public static void main(String[] args) throws Throwable {

if (!Platform.isDefaultCDSArchiveSupported())
throw new SkippedException("not a supported platform");

Helper helper = Helper.newHelper();
if (helper == null) {
System.err.println("Test not run");
Expand All @@ -69,8 +74,14 @@ public static void main(String[] args) throws Throwable {
subDir = "lib" + sep;
}
subDir += "server" + sep;
helper.checkImage(image, module, null, null,
new String[] { subDir + "classes.jsa", subDir + "classes_nocoops.jsa" });

if (Platform.isAArch64() || Platform.isX64()) {
helper.checkImage(image, module, null, null,
new String[] { subDir + "classes.jsa", subDir + "classes_nocoops.jsa" });
} else {
helper.checkImage(image, module, null, null,
new String[] { subDir + "classes.jsa" });
}

// Simulate different platforms between current runtime and target image.
if (Platform.isLinux()) {
Expand Down

1 comment on commit 47ad3b4

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.