diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2012-05-01 21:00:43 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2012-05-01 21:00:43 (GMT) |
commit | 7955e995ec400fb063529064b6232ca0eedfe5e0 (patch) | |
tree | bc3d928ad0b31dd93634794b83b425dfc8cdd8f7 /Source/CTest/cmParseGTMCoverage.cxx | |
parent | a86cd33cdd497acdb6b77a44c146a9779730675e (diff) | |
download | CMake-7955e995ec400fb063529064b6232ca0eedfe5e0.zip CMake-7955e995ec400fb063529064b6232ca0eedfe5e0.tar.gz CMake-7955e995ec400fb063529064b6232ca0eedfe5e0.tar.bz2 |
Add support for Cache coverage.
This adds support for Cache coverage parsing. A test is added
that does a basic run of the coverage on a small bit of data.
Diffstat (limited to 'Source/CTest/cmParseGTMCoverage.cxx')
-rw-r--r-- | Source/CTest/cmParseGTMCoverage.cxx | 28 |
1 files changed, 3 insertions, 25 deletions
diff --git a/Source/CTest/cmParseGTMCoverage.cxx b/Source/CTest/cmParseGTMCoverage.cxx index 90d047b..f850c3c 100644 --- a/Source/CTest/cmParseGTMCoverage.cxx +++ b/Source/CTest/cmParseGTMCoverage.cxx @@ -88,36 +88,14 @@ bool cmParseGTMCoverage::ReadMCovFile(const char* file) { cmCTestLog(this->CTest, ERROR_MESSAGE, "Can not find mumps file : " - << lastroutine << " referenced in this line of mcov data:\n" + << lastroutine << + " referenced in this line of mcov data:\n" "[" << line << "]\n"); } continue; } // Find the full path to the file - std::map<cmStdString, cmStdString>::iterator i = - this->RoutineToDirectory.find(routine); - bool found = false; - if(i != this->RoutineToDirectory.end()) - { - filepath = i->second; - found = true; - } - else - { - // try some alternate names - const char* tryname[] = {"GUX", "GTM", "ONT", 0}; - for(int k=0; tryname[k] != 0; k++) - { - std::string routine2 = routine + tryname[k]; - i = this->RoutineToDirectory.find(routine2); - if(i != this->RoutineToDirectory.end()) - { - found = true; - filepath = i->second; - break; // break out of tryname loop if found - } - } - } + bool found = this->FindMumpsFile(routine, filepath); if(found) { int lineoffset; |