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
This commit is contained in:
parent
212eeff04c
commit
e8d48151d3
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue