summaryrefslogtreecommitdiff
path: root/Modules/GoogleTestAddTests.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-12-03 09:30:44 -0500
committerBrad King <brad.king@kitware.com>2020-12-03 09:33:34 -0500
commitdff56b0b978d68ef0923f00cd2e41db239ba32a7 (patch)
tree2074755b357b1e6ca5530d9ddf147104f67e648b /Modules/GoogleTestAddTests.cmake
parent8bdde2b161979ba61f41bfce2bdba1bb38cdcb04 (diff)
downloadcmake-dff56b0b978d68ef0923f00cd2e41db239ba32a7.tar.gz
GoogleTest: Match the full 'DISABLED_' prefix to disable tests
Test names that start in `DISABLED` not followed by an underscore are not disabled. Fixes: #21543
Diffstat (limited to 'Modules/GoogleTestAddTests.cmake')
-rw-r--r--Modules/GoogleTestAddTests.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/GoogleTestAddTests.cmake b/Modules/GoogleTestAddTests.cmake
index 883e1f48d0..0f79c9afc0 100644
--- a/Modules/GoogleTestAddTests.cmake
+++ b/Modules/GoogleTestAddTests.cmake
@@ -136,7 +136,7 @@ function(gtest_discover_tests_impl)
${TEST_XML_OUTPUT_PARAM}
${extra_args}
)
- if(suite MATCHES "^DISABLED" OR test MATCHES "^DISABLED")
+ if(suite MATCHES "^DISABLED_" OR test MATCHES "^DISABLED_")
add_command(set_tests_properties
"${testname}"
PROPERTIES DISABLED TRUE