summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorZach Mullen <zach.mullen@kitware.com>2010-06-11 18:17:00 (GMT)
committerZach Mullen <zach.mullen@kitware.com>2010-06-11 18:17:00 (GMT)
commit9d6567a26998024e7614c7cff322319f47526c80 (patch)
tree7f3debf5a03e5361756d5a1fc688be6e411e5e83 /Source
parentb9e3c243d476efa04479d253cfc4f76ecbdb6fe3 (diff)
downloadCMake-9d6567a26998024e7614c7cff322319f47526c80.zip
CMake-9d6567a26998024e7614c7cff322319f47526c80.tar.gz
CMake-9d6567a26998024e7614c7cff322319f47526c80.tar.bz2
Extra coverage glob should subtract the explicitly defined excluded files
Diffstat (limited to 'Source')
-rw-r--r--Source/CTest/cmCTestCoverageHandler.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestCoverageHandler.cxx b/Source/CTest/cmCTestCoverageHandler.cxx
index 3235bfd..55a5225 100644
--- a/Source/CTest/cmCTestCoverageHandler.cxx
+++ b/Source/CTest/cmCTestCoverageHandler.cxx
@@ -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()));
+ }
}
}