Skip to content

Commit 3466e99

Browse files
matias9927calvinccheung
authored andcommitted
8294691: dynamicArchive/RelativePath.java is running other test case
Reviewed-by: iklam, ccheung
1 parent 823b53d commit 3466e99

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/RelativePath.java

+11-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
public class RelativePath extends DynamicArchiveTestBase {
4040

4141
public static void main(String[] args) throws Exception {
42-
runTest(AppendClasspath::testDefaultBase);
42+
runTest(RelativePath::testDefaultBase);
4343
}
4444

4545
static void testDefaultBase() throws Exception {
@@ -54,6 +54,16 @@ private static void doTest(String topArchiveName) throws Exception {
5454
int idx = appJar.lastIndexOf(File.separator);
5555
String jarName = appJar.substring(idx + 1);
5656
String jarDir = appJar.substring(0, idx);
57+
58+
// Create CDS Archive
59+
dump(topArchiveName, "-Xlog:cds",
60+
"-Xlog:cds+dynamic=debug",
61+
"-cp", appJar + File.pathSeparator + appJar2,
62+
"HelloMore")
63+
.assertNormalExit(output-> {
64+
output.shouldContain("Written dynamic archive 0x");
65+
});
66+
5767
// relative path starting with "."
5868
runWithRelativePath(null, topArchiveName, jarDir,
5969
"-Xlog:class+load",

0 commit comments

Comments
 (0)