Skip to content

Commit

Permalink
update headless check (#3138)
Browse files Browse the repository at this point in the history
Signed-off-by: Sophia Guo <sophia.gwf@gmail.com>
  • Loading branch information
sophia-guo authored Nov 16, 2021
1 parent 6f6c006 commit 1db4e70
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion openjdk/openjdk.mk
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ JTREG_BASIC_OPTIONS += $(JTREG_XML_OPTION)
JTREG_BASIC_OPTIONS += $(EXTRA_JTREG_OPTIONS)
JTREG_KEY_OPTIONS :=
VMOPTION_HEADLESS :=
ifneq ($(PLATFORM),x86-64_alpine-linux)
libcVendor = $(shell ldd --version 2>&1 | sed -n '1s/.*\(musl\).*/\1/p')

ifeq ($(libcVendor),musl)
JTREG_KEY_OPTIONS := -k:'!headful'
VMOPTION_HEADLESS := -Djava.awt.headless=true
endif
Expand Down

0 comments on commit 1db4e70

Please sign in to comment.