Extra coverage glob should subtract the explicitly defined excluded files
This commit is contained in:
parent
b9e3c243d4
commit
9d6567a269
|
@ -2038,10 +2038,14 @@ std::set<std::string> cmCTestCoverageHandler::FindUncoveredFiles(
|
||||||
for(std::vector<std::string>::iterator f = files.begin();
|
for(std::vector<std::string>::iterator f = files.begin();
|
||||||
f != files.end(); ++f)
|
f != files.end(); ++f)
|
||||||
{
|
{
|
||||||
|
if(this->ShouldIDoCoverage(f->c_str(),
|
||||||
|
cont->SourceDir.c_str(), cont->BinaryDir.c_str()))
|
||||||
|
{
|
||||||
extraMatches.insert(this->CTest->GetShortPathToFile(
|
extraMatches.insert(this->CTest->GetShortPathToFile(
|
||||||
f->c_str()));
|
f->c_str()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(extraMatches.size())
|
if(extraMatches.size())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue