From f014854ac71a82b307667ba017f01b13eed54330 Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Mon, 28 Sep 2020 01:54:45 +0000 Subject: [PATCH] 8253624: gtest fails when run from make with read-only source directory Reviewed-by: erikj --- make/RunTests.gmk | 1 + 1 file changed, 1 insertion(+) diff --git a/make/RunTests.gmk b/make/RunTests.gmk index b978f9cf5af..97fd016b361 100644 --- a/make/RunTests.gmk +++ b/make/RunTests.gmk @@ -609,6 +609,7 @@ define SetupRunGtestTestBody $$(call LogWarn, Running test '$$($1_TEST)') $$(call MakeDir, $$($1_TEST_RESULTS_DIR) $$($1_TEST_SUPPORT_DIR)) $$(call ExecuteWithLog, $$($1_TEST_SUPPORT_DIR)/gtest, ( \ + $$(CD) $$($1_TEST_SUPPORT_DIR) && \ $$(FIXPATH) $$(TEST_IMAGE_DIR)/hotspot/gtest/$$($1_VARIANT)/gtestLauncher \ -jdk $(JDK_UNDER_TEST) $$($1_GTEST_FILTER) \ --gtest_output=xml:$$($1_TEST_RESULTS_DIR)/gtest.xml \