瀏覽代碼

Extra coverage glob should subtract the explicitly defined excluded files

Zach Mullen 15 年之前
父節點
當前提交
9d6567a269
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      Source/CTest/cmCTestCoverageHandler.cxx

+ 6 - 2
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()));
+        }
       }
     }