8201263: Trailing backslash in VS120COMNTOOLS leads to ugly error message when running tests
authormikael
Mon, 09 Apr 2018 10:19:33 -0700
changeset 49552 05883543ee2a
parent 49551 0d4786e42471
child 49553 58cffb6ec13c
8201263: Trailing backslash in VS120COMNTOOLS leads to ugly error message when running tests Reviewed-by: erikj
test/TestCommon.gmk
--- a/test/TestCommon.gmk	Mon Apr 09 09:45:51 2018 -0700
+++ b/test/TestCommon.gmk	Mon Apr 09 10:19:33 2018 -0700
@@ -446,7 +446,7 @@
 JTREG_BASIC_OPTIONS += -e:JDK8_HOME=${JT_JAVA}
 # Give aot tests access to Visual Studio installation
 ifneq ($(VS120COMNTOOLS), )
-  JTREG_BASIC_OPTIONS += -e:VS120COMNTOOLS=$(shell $(GETMIXEDPATH) "$(VS120COMNTOOLS)")
+  JTREG_BASIC_OPTIONS += -e:VS120COMNTOOLS="$(shell $(GETMIXEDPATH) "$(patsubst %\,%,$(VS120COMNTOOLS))")"
 endif
 # Set other vm and test options
 JTREG_TEST_OPTIONS += $(JAVA_ARGS:%=-javaoptions:%) $(JAVA_VM_ARGS:%=-vmoption:%)