summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-08-30 12:10:35 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-08-30 12:10:35 (GMT)
commit452882ebeb032b25a08d35f2b2df3a785093ca6c (patch)
treea41e0a9ba292e018b873c100ea3d2aafab50fe57 /Source
parentb62042dbfb422563dc9a240bd89efc28de8e4b17 (diff)
parent782eba3a0c74009e24708d28fd520b1ba919d326 (diff)
downloadCMake-452882ebeb032b25a08d35f2b2df3a785093ca6c.zip
CMake-452882ebeb032b25a08d35f2b2df3a785093ca6c.tar.gz
CMake-452882ebeb032b25a08d35f2b2df3a785093ca6c.tar.bz2
Merge topic 'ctest-gtm-coverage-fileoffset-bug'
782eba3 CTest: Fix GTM coverage parsing line offset bug
Diffstat (limited to 'Source')
-rw-r--r--Source/CTest/cmParseGTMCoverage.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CTest/cmParseGTMCoverage.cxx b/Source/CTest/cmParseGTMCoverage.cxx
index 5dfcfe5..6b4adb4 100644
--- a/Source/CTest/cmParseGTMCoverage.cxx
+++ b/Source/CTest/cmParseGTMCoverage.cxx
@@ -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,8 +106,8 @@ bool cmParseGTMCoverage::ReadMCovFile(const char* file)
cmCTestCoverageHandlerContainer::SingleFileCoverageVector&
coverageVector = this->Coverage.TotalCoverage[filepath];
coverageVector[lineoffset + linenumber] += count;
+ lastoffset = lineoffset;
}
- lastoffset = lineoffset;
}
else
{