1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 19:08:07 +08:00

Tests: Fix RunCMake.CTestCommandLine under ctest -T Coverage

Update commit 712cb8cb14 (ctest: Restore support for -T Test without
dashboard configuration, 2025-03-06, v4.0.0-rc4~11^2) to avoid
conflating coverage of CMake itself with the coverage mode of ctest
being tested.
This commit is contained in:
Brad King
2025-04-22 11:23:11 -04:00
parent f9ee88c3f5
commit 6bc5b467a9

View File

@@ -559,7 +559,9 @@ run_cmake_command(EmptyDirTest-ctest
)
run_cmake_command(EmptyDirCoverage-ctest
${CMAKE_CTEST_COMMAND} -C Debug -M Experimental -T Coverage
# Isolate this test from any surrounding coverage tool.
${CMAKE_COMMAND} -E env --unset=COVFILE
${CMAKE_CTEST_COMMAND} -C Debug -M Experimental -T Coverage
)
function(run_MemCheckSan case opts)