diff options
author | Brad King <brad.king@kitware.com> | 2023-03-03 15:30:59 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-03-03 15:38:02 (GMT) |
commit | 9aa9032266b0c4cd8219d637a97b527dc86e2f85 (patch) | |
tree | 85541af2f5aa04460a37815a4778deb62a3778e7 /Modules/GoogleTestAddTests.cmake | |
parent | 878e8d2f4a8ca5d743e199d20cc0bc2601730643 (diff) | |
download | CMake-9aa9032266b0c4cd8219d637a97b527dc86e2f85.zip CMake-9aa9032266b0c4cd8219d637a97b527dc86e2f85.tar.gz CMake-9aa9032266b0c4cd8219d637a97b527dc86e2f85.tar.bz2 |
GoogleTest: Restore suite name for type-parametrized tests
Fix a regression from commit 073dd1bd81 (GoogleTest: Change format for
typed tests, 2022-02-07, v3.23.0-rc1~4^2) in the suite name detection.
Co-authored-by: Evgeniy Shcherbina <ixsci@pm.me>
Fixes: #24563
Diffstat (limited to 'Modules/GoogleTestAddTests.cmake')
-rw-r--r-- | Modules/GoogleTestAddTests.cmake | 2 |
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() |