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.
This commit is contained in:
Zack Galbreath 2015-07-13 11:56:06 -04:00 committed by Brad King
parent 6f6664f578
commit e6cf1c489c
1 changed files with 1 additions and 1 deletions

View File

@ -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."