From e8d48151d36d82d7432293b7dca1471451d537f5 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Tue, 24 Oct 2006 12:44:59 -0400 Subject: 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 --- Source/CTest/cmCTestCoverageHandler.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- cgit v0.12