diff options
author | Zack Galbreath <zack.galbreath@kitware.com> | 2015-07-13 15:56:06 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-07-13 18:17:59 (GMT) |
commit | e6cf1c489cbebf41524de389895c58bc644fd7f8 (patch) | |
tree | 58738148a2bcab2ca2eefed1edb2e552c15457fa /Source/CTest/cmCTestCoverageHandler.cxx | |
parent | 6f6664f578426e15e6e101f20a0c54a7b2820e96 (diff) | |
download | CMake-e6cf1c489cbebf41524de389895c58bc644fd7f8.zip CMake-e6cf1c489cbebf41524de389895c58bc644fd7f8.tar.gz CMake-e6cf1c489cbebf41524de389895c58bc644fd7f8.tar.bz2 |
ctest_coverage: Always do coverage for CTEST_EXTRA_COVERAGE_GLOB
Do not ignore a coverage request if CTEST_EXTRA_COVERAGE_GLOB was
specified. Prior to this change, if no lines of code were covered by
any tests then CTest would neglect to generate a Coverage.xml file.
This change allows us to report uncovered files for a project with no
tests.
Diffstat (limited to 'Source/CTest/cmCTestCoverageHandler.cxx')
-rw-r--r-- | Source/CTest/cmCTestCoverageHandler.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestCoverageHandler.cxx b/Source/CTest/cmCTestCoverageHandler.cxx index f92f19a..6369e17 100644 --- a/Source/CTest/cmCTestCoverageHandler.cxx +++ b/Source/CTest/cmCTestCoverageHandler.cxx @@ -446,7 +446,7 @@ int cmCTestCoverageHandler::ProcessHandler() } std::set<std::string> uncovered = this->FindUncoveredFiles(&cont); - if ( file_count == 0 ) + if (file_count == 0 && this->ExtraCoverageGlobs.empty()) { cmCTestOptionalLog(this->CTest, WARNING, " Cannot find any coverage files. Ignoring Coverage request." |