diff options
author | Brad King <brad.king@kitware.com> | 2020-12-03 14:30:44 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-12-03 14:33:34 (GMT) |
commit | dff56b0b978d68ef0923f00cd2e41db239ba32a7 (patch) | |
tree | 2074755b357b1e6ca5530d9ddf147104f67e648b /Modules | |
parent | 8bdde2b161979ba61f41bfce2bdba1bb38cdcb04 (diff) | |
download | CMake-dff56b0b978d68ef0923f00cd2e41db239ba32a7.zip CMake-dff56b0b978d68ef0923f00cd2e41db239ba32a7.tar.gz CMake-dff56b0b978d68ef0923f00cd2e41db239ba32a7.tar.bz2 |
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')
-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 883e1f4..0f79c9a 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 |