[cmake-commits] andy committed cmCTestCoverageHandler.cxx 1.35 1.36

cmake-commits at cmake.org cmake-commits at cmake.org
Tue Oct 24 12:45:04 EDT 2006


Update of /cvsroot/CMake/CMake/Source/CTest
In directory public:/mounts/ram/cvs-serv20467/Source/CTest

Modified Files:
	cmCTestCoverageHandler.cxx 
Log Message:
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


Index: cmCTestCoverageHandler.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/CTest/cmCTestCoverageHandler.cxx,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- cmCTestCoverageHandler.cxx	19 Oct 2006 14:45:19 -0000	1.35
+++ cmCTestCoverageHandler.cxx	24 Oct 2006 16:44:59 -0000	1.36
@@ -717,7 +717,7 @@
     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()



More information about the Cmake-commits mailing list