Skip to content

Commit

Permalink
8294691: dynamicArchive/RelativePath.java is running other test case
Browse files Browse the repository at this point in the history
Backport-of: 3466e999348696c8666afd7a59c6947f61fe4d6a
  • Loading branch information
Andrew Lu committed Jul 4, 2024
1 parent 379a14b commit b555bbb
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
public class RelativePath extends DynamicArchiveTestBase {

public static void main(String[] args) throws Exception {
runTest(AppendClasspath::testDefaultBase);
runTest(RelativePath::testDefaultBase);
}

static void testDefaultBase() throws Exception {
Expand All @@ -54,6 +54,16 @@ private static void doTest(String topArchiveName) throws Exception {
int idx = appJar.lastIndexOf(File.separator);
String jarName = appJar.substring(idx + 1);
String jarDir = appJar.substring(0, idx);

// Create CDS Archive
dump(topArchiveName, "-Xlog:cds",
"-Xlog:cds+dynamic=debug",
"-cp", appJar + File.pathSeparator + appJar2,
"HelloMore")
.assertNormalExit(output-> {
output.shouldContain("Written dynamic archive 0x");
});

// relative path starting with "."
runWithRelativePath(null, topArchiveName, jarDir,
"-Xlog:class+load",
Expand Down

1 comment on commit b555bbb

@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.