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
Reviewed-by: iklam, ccheung
  • Loading branch information
matias9927 authored and calvinccheung committed Oct 7, 2022
1 parent 823b53d commit 3466e99
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 3466e99

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