Merge topic 'ctest-gtm-coverage-fileoffset-bug'

782eba3 CTest: Fix GTM coverage parsing line offset bug
This commit is contained in:
Brad King 2013-08-30 08:10:35 -04:00 committed by CMake Topic Stage
commit 452882ebeb
1 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ bool cmParseGTMCoverage::ReadMCovFile(const char* file)
bool found = this->FindMumpsFile(routine, filepath);
if(found)
{
int lineoffset;
int lineoffset = 0;
if(this->FindFunctionInMumpsFile(filepath,
function,
lineoffset))
@ -106,9 +106,9 @@ bool cmParseGTMCoverage::ReadMCovFile(const char* file)
cmCTestCoverageHandlerContainer::SingleFileCoverageVector&
coverageVector = this->Coverage.TotalCoverage[filepath];
coverageVector[lineoffset + linenumber] += count;
}
lastoffset = lineoffset;
}
}
else
{
cmCTestLog(this->CTest, ERROR_MESSAGE,