Extra coverage glob should subtract the explicitly defined excluded files

This commit is contained in:
Zach Mullen 2010-06-11 14:17:00 -04:00
parent b9e3c243d4
commit 9d6567a269
1 changed files with 6 additions and 2 deletions

View File

@ -2038,8 +2038,12 @@ std::set<std::string> cmCTestCoverageHandler::FindUncoveredFiles(
for(std::vector<std::string>::iterator f = files.begin();
f != files.end(); ++f)
{
extraMatches.insert(this->CTest->GetShortPathToFile(
f->c_str()));
if(this->ShouldIDoCoverage(f->c_str(),
cont->SourceDir.c_str(), cont->BinaryDir.c_str()))
{
extraMatches.insert(this->CTest->GetShortPathToFile(
f->c_str()));
}
}
}