diff options
author | Brad King <brad.king@kitware.com> | 2013-08-30 12:10:35 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2013-08-30 12:10:35 (GMT) |
commit | 452882ebeb032b25a08d35f2b2df3a785093ca6c (patch) | |
tree | a41e0a9ba292e018b873c100ea3d2aafab50fe57 /Source | |
parent | b62042dbfb422563dc9a240bd89efc28de8e4b17 (diff) | |
parent | 782eba3a0c74009e24708d28fd520b1ba919d326 (diff) | |
download | CMake-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.cxx | 4 |
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 { |