Merge topic 'ctest-gtm-coverage-fileoffset-bug'
782eba3
CTest: Fix GTM coverage parsing line offset bug
This commit is contained in:
commit
452882ebeb
|
@ -98,7 +98,7 @@ bool cmParseGTMCoverage::ReadMCovFile(const char* file)
|
||||||
bool found = this->FindMumpsFile(routine, filepath);
|
bool found = this->FindMumpsFile(routine, filepath);
|
||||||
if(found)
|
if(found)
|
||||||
{
|
{
|
||||||
int lineoffset;
|
int lineoffset = 0;
|
||||||
if(this->FindFunctionInMumpsFile(filepath,
|
if(this->FindFunctionInMumpsFile(filepath,
|
||||||
function,
|
function,
|
||||||
lineoffset))
|
lineoffset))
|
||||||
|
@ -106,8 +106,8 @@ bool cmParseGTMCoverage::ReadMCovFile(const char* file)
|
||||||
cmCTestCoverageHandlerContainer::SingleFileCoverageVector&
|
cmCTestCoverageHandlerContainer::SingleFileCoverageVector&
|
||||||
coverageVector = this->Coverage.TotalCoverage[filepath];
|
coverageVector = this->Coverage.TotalCoverage[filepath];
|
||||||
coverageVector[lineoffset + linenumber] += count;
|
coverageVector[lineoffset + linenumber] += count;
|
||||||
|
lastoffset = lineoffset;
|
||||||
}
|
}
|
||||||
lastoffset = lineoffset;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue