File tree 1 file changed +11
-1
lines changed
test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 39
39
public class RelativePath extends DynamicArchiveTestBase {
40
40
41
41
public static void main (String [] args ) throws Exception {
42
- runTest (AppendClasspath ::testDefaultBase );
42
+ runTest (RelativePath ::testDefaultBase );
43
43
}
44
44
45
45
static void testDefaultBase () throws Exception {
@@ -54,6 +54,16 @@ private static void doTest(String topArchiveName) throws Exception {
54
54
int idx = appJar .lastIndexOf (File .separator );
55
55
String jarName = appJar .substring (idx + 1 );
56
56
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
+
57
67
// relative path starting with "."
58
68
runWithRelativePath (null , topArchiveName , jarDir ,
59
69
"-Xlog:class+load" ,
You can’t perform that action at this time.
0 commit comments