summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-06-29 12:21:01 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-06-29 12:21:08 (GMT)
commita6732df9259f135d5ef08455868c49fdb1f0517c (patch)
tree2b917ff2779fb39a5d9270a9b9379e8ccf7aaaa3
parentdade4fc36c8ab7fe0ffdc673f714550af7a003e9 (diff)
parent75aa3ee7e724e0f6c3d2707565519041efe1443f (diff)
downloadCMake-a6732df9259f135d5ef08455868c49fdb1f0517c.zip
CMake-a6732df9259f135d5ef08455868c49fdb1f0517c.tar.gz
CMake-a6732df9259f135d5ef08455868c49fdb1f0517c.tar.bz2
Merge topic 'gtest-xml-output'
75aa3ee7e7 GoogleTest: Fix name generation for XML_OUTPUT_DIR Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4942
-rw-r--r--Modules/GoogleTestAddTests.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/GoogleTestAddTests.cmake b/Modules/GoogleTestAddTests.cmake
index 4af62ed..5d098d9 100644
--- a/Modules/GoogleTestAddTests.cmake
+++ b/Modules/GoogleTestAddTests.cmake
@@ -112,7 +112,7 @@ function(gtest_discover_tests_impl)
string(REGEX REPLACE "^DISABLED_" "" pretty_test "${pretty_test}")
string(REGEX REPLACE "#.*" "" test "${test}")
if(NOT "${_TEST_XML_OUTPUT_DIR}" STREQUAL "")
- set(TEST_XML_OUTPUT_PARAM "--gtest_output=xml:${_TEST_XML_OUTPUT_DIR}/${prefix}${pretty_suite}.${pretty_test}${suffix}.xml")
+ set(TEST_XML_OUTPUT_PARAM "--gtest_output=xml:${_TEST_XML_OUTPUT_DIR}/${prefix}${suite}.${test}${suffix}.xml")
else()
unset(TEST_XML_OUTPUT_PARAM)
endif()