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:
parent
6f6664f578
commit
e6cf1c489c
|
@ -446,7 +446,7 @@ int cmCTestCoverageHandler::ProcessHandler()
|
||||||
}
|
}
|
||||||
std::set<std::string> uncovered = this->FindUncoveredFiles(&cont);
|
std::set<std::string> uncovered = this->FindUncoveredFiles(&cont);
|
||||||
|
|
||||||
if ( file_count == 0 )
|
if (file_count == 0 && this->ExtraCoverageGlobs.empty())
|
||||||
{
|
{
|
||||||
cmCTestOptionalLog(this->CTest, WARNING,
|
cmCTestOptionalLog(this->CTest, WARNING,
|
||||||
" Cannot find any coverage files. Ignoring Coverage request."
|
" Cannot find any coverage files. Ignoring Coverage request."
|
||||||
|
|
Loading…
Reference in New Issue