summaryrefslogtreecommitdiffstats
path: root/Source/CTest
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-03-02 20:32:59 (GMT)
committerBrad King <brad.king@kitware.com>2009-03-02 20:32:59 (GMT)
commitc4596605dfba62ff1bd9b1c72684d1c487ef9542 (patch)
treee1a586a72a04c8edb92fb4be655c26507e3da587 /Source/CTest
parent3838ec7d9f2b60281b6c92b6a614a78ff78a785c (diff)
downloadCMake-c4596605dfba62ff1bd9b1c72684d1c487ef9542.zip
CMake-c4596605dfba62ff1bd9b1c72684d1c487ef9542.tar.gz
CMake-c4596605dfba62ff1bd9b1c72684d1c487ef9542.tar.bz2
BUG: Fix coverage handler initialization
This resets coverage handler internal state on initialization so that multiple coverage runs are independent.
Diffstat (limited to 'Source/CTest')
-rw-r--r--Source/CTest/cmCTestCoverageHandler.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestCoverageHandler.cxx b/Source/CTest/cmCTestCoverageHandler.cxx
index 678ec75..751457f 100644
--- a/Source/CTest/cmCTestCoverageHandler.cxx
+++ b/Source/CTest/cmCTestCoverageHandler.cxx
@@ -152,7 +152,10 @@ cmCTestCoverageHandler::cmCTestCoverageHandler()
void cmCTestCoverageHandler::Initialize()
{
this->Superclass::Initialize();
- this->CustomCoverageExclude.empty();
+ this->CustomCoverageExclude.clear();
+ this->SourceLabels.clear();
+ this->LabelIdMap.clear();
+ this->Labels.clear();
}
//----------------------------------------------------------------------
@@ -346,7 +349,7 @@ int cmCTestCoverageHandler::ProcessHandler()
cont.OFS = &ofs;
// setup the regex exclude stuff
- this->CustomCoverageExcludeRegex.empty();
+ this->CustomCoverageExcludeRegex.clear();
std::vector<cmStdString>::iterator rexIt;
for ( rexIt = this->CustomCoverageExclude.begin();
rexIt != this->CustomCoverageExclude.end();