summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-03-06 13:53:24 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-03-06 13:53:40 (GMT)
commit9c181ad47021b0d4f77f081371410285d203621c (patch)
treeb32b4b6f9d02857ef9825c31632fcb37f356d946 /Modules
parenta8b1fb7976741e6fbdb7d1e5bb241cf738e8433b (diff)
parent9aa9032266b0c4cd8219d637a97b527dc86e2f85 (diff)
downloadCMake-9c181ad47021b0d4f77f081371410285d203621c.zip
CMake-9c181ad47021b0d4f77f081371410285d203621c.tar.gz
CMake-9c181ad47021b0d4f77f081371410285d203621c.tar.bz2
Merge topic 'GoogleTest-type-param-suite' into release-3.26
9aa9032266 GoogleTest: Restore suite name for type-parametrized tests Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8282
Diffstat (limited to 'Modules')
-rw-r--r--Modules/GoogleTestAddTests.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/GoogleTestAddTests.cmake b/Modules/GoogleTestAddTests.cmake
index 2bd0cc9..de0f7d6 100644
--- a/Modules/GoogleTestAddTests.cmake
+++ b/Modules/GoogleTestAddTests.cmake
@@ -134,7 +134,7 @@ function(gtest_discover_tests_impl)
# Module; remove trailing '.' to get just the name...
string(REGEX REPLACE "\\.( *#.*)?$" "" suite "${line}")
if(line MATCHES "#")
- string(REGEX REPLACE "/.*" "" pretty_suite "${line}")
+ string(REGEX REPLACE "/[0-9].*" "" pretty_suite "${line}")
if(NOT _NO_PRETTY_TYPES)
string(REGEX REPLACE ".*/[0-9]+[ .#]+TypeParam = (.*)" "\\1" type_parameter "${line}")
else()