Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 600d82a

Browse files
committed
8245281: Disabling hotspot gtest builds make it impossible to run tests
Reviewed-by: erikj
1 parent d191d2f commit 600d82a

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

make/Main.gmk

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,16 +1100,23 @@ endif
11001100
# This target builds the documentation image
11011101
docs-image: docs-jdk
11021102

1103-
# If not already set, set the JVM specific targets to build the test image
1104-
JVM_TEST_IMAGE_TARGETS ?= test-image-hotspot-jtreg-native test-image-hotspot-gtest
1103+
# This target builds the test image
1104+
test-image: prepare-test-image test-image-jdk-jtreg-native test-image-demos-jdk
11051105

1106-
ifeq ($(INCLUDE_GRAAL), true)
1107-
JVM_TEST_IMAGE_TARGETS += test-image-hotspot-jtreg-graal
1108-
endif
1106+
ifneq ($(JVM_TEST_IMAGE_TARGETS), )
1107+
# If JVM_TEST_IMAGE_TARGETS is externally defined, use it instead of the
1108+
# standard hotspot set of tests.
1109+
test-image: $(JVM_TEST_IMAGE_TARGETS)
1110+
else
1111+
test-image: test-image-hotspot-jtreg-native
1112+
ifeq ($(BUILD_GTEST), true)
1113+
test-image: test-image-hotspot-gtest
1114+
endif
11091115

1110-
# This target builds the test image
1111-
test-image: prepare-test-image test-image-jdk-jtreg-native \
1112-
test-image-demos-jdk $(JVM_TEST_IMAGE_TARGETS)
1116+
ifeq ($(INCLUDE_GRAAL), true)
1117+
test-image: test-image-hotspot-jtreg-graal
1118+
endif
1119+
endif
11131120

11141121
ifeq ($(BUILD_FAILURE_HANDLER), true)
11151122
test-image: test-image-failure-handler

0 commit comments

Comments
 (0)