Skip to content

Commit 722673d

Browse files
committed
cvm/overlay: (2/2) Fix Unknown VM error in hotspot test
Add cvm type of VM
1 parent da464af commit 722673d

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

cvm.mk

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,10 @@ JT_OPTS_EXCLUDE=-exclude:$(JDK8_SRCROOT)/jdk/test/ProblemList.txt -exclude:$(CVM
345345
$(call overlay_single,jdk8u,langtools/test/tools/javac/annotations/8218152/MalformedAnnotationProcessorTests.java, $(JDK8_SRCROOT))
346346
$(call overlay_single,jdk8u,langtools/test/tools/javac/6508981/TestInferBinaryName.java, $(JDK8_SRCROOT))
347347

348+
-overlay-hotspot8:
349+
$(call overlay_single,jdk8u,hotspot/test/testlibrary/com/oracle/java/testlibrary/Platform.java, $(JDK8_SRCROOT))
350+
$(call overlay_single,jdk8u,hotspot/test/testlibrary/com/oracle/java/testlibrary/cli/CommandLineOptionTest.java, $(JDK8_SRCROOT))
351+
348352
-overlay-jtreg:
349353
$(call overlay_single,jdk8u,test/jtreg-ext/requires/VMProps.java, $(JDK8_SRCROOT))
350354

@@ -365,7 +369,7 @@ test_jtreg8_jdk_core: -setup_jtreg8 -overlay-jdk8
365369
$(eval JT_TEST = ":jdk_core")
366370
$(call run_jtreg8_test,$(JDK8_SRCROOT)/jdk/test,$(JT_TEST),$(JT_OPTS_EXCLUDE))
367371

368-
test_jtreg8_hotspot: -setup_jtreg8 -overlay-jtreg
372+
test_jtreg8_hotspot: -setup_jtreg8 -overlay-jtreg -overlay-hotspot8
369373
$(eval JT_REPO = hotspot)
370374
$(call run_jtreg8_test,$(JDK8_SRCROOT)/$(JT_REPO)/test,$(JT_TEST),$(JT_OPTS_EXCLUDE))
371375

cvm/overlay/jdk8u/hotspot/test/testlibrary/com/oracle/java/testlibrary/Platform.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ public static boolean isServer() {
4343
return vmName.endsWith(" Server VM");
4444
}
4545

46+
public static boolean isCVM() {
47+
return vmName.contains("CompoundVM");
48+
}
49+
4650
public static boolean isGraal() {
4751
return vmName.endsWith(" Graal VM");
4852
}

cvm/overlay/jdk8u/hotspot/test/testlibrary/com/oracle/java/testlibrary/cli/CommandLineOptionTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,8 @@ private static String getVMTypeOption() {
299299
return "-minimal";
300300
} else if (Platform.isGraal()) {
301301
return "-graal";
302+
} else if (Platform.isCVM()) {
303+
return "-cvm";
302304
}
303305
throw new RuntimeException("Unknown VM mode.");
304306
}

0 commit comments

Comments
 (0)