diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-10-24 16:44:59 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-10-24 16:44:59 (GMT) |
commit | e8d48151d36d82d7432293b7dca1471451d537f5 (patch) | |
tree | 7224a27628cae859d9710ec7ad556d4d6f43876c /Source/CTest/cmCTestCoverageHandler.cxx | |
parent | 212eeff04c2a66e8c0c5fd728f4bc92e968598d1 (diff) | |
download | CMake-e8d48151d36d82d7432293b7dca1471451d537f5.zip CMake-e8d48151d36d82d7432293b7dca1471451d537f5.tar.gz CMake-e8d48151d36d82d7432293b7dca1471451d537f5.tar.bz2 |
BUG: Looks like gcov produces lines with string /*EOF*/ on them if there is no line at the end of the file. This will fix the coverage code complaining about it
Diffstat (limited to 'Source/CTest/cmCTestCoverageHandler.cxx')
-rw-r--r-- | Source/CTest/cmCTestCoverageHandler.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestCoverageHandler.cxx b/Source/CTest/cmCTestCoverageHandler.cxx index b0dee01..23a6738 100644 --- a/Source/CTest/cmCTestCoverageHandler.cxx +++ b/Source/CTest/cmCTestCoverageHandler.cxx @@ -717,7 +717,7 @@ int cmCTestCoverageHandler::ProcessHandler() std::string line; for ( cc= 0; cc < fcov.size(); cc ++ ) { - if ( !cmSystemTools::GetLineFromStream(ifs, line) ) + if ( !cmSystemTools::GetLineFromStream(ifs, line) && cc != fcov.size() -1 ) { cmOStringStream ostr; ostr << "Problem reading source file: " << fullFileName.c_str() |