ctest_coverage: Fix error message to report the file name
Print file name instead of line content for "Looks like there are more lines in the file:" error message.
This commit is contained in:
parent
d63609ed2a
commit
9c4984b4e5
|
@ -585,7 +585,7 @@ int cmCTestCoverageHandler::ProcessHandler()
|
||||||
if ( cmSystemTools::GetLineFromStream(ifs, line) )
|
if ( cmSystemTools::GetLineFromStream(ifs, line) )
|
||||||
{
|
{
|
||||||
cmOStringStream ostr;
|
cmOStringStream ostr;
|
||||||
ostr << "Looks like there are more lines in the file: " << line;
|
ostr << "Looks like there are more lines in the file: " << fullFileName;
|
||||||
errorsWhileAccumulating.push_back(ostr.str());
|
errorsWhileAccumulating.push_back(ostr.str());
|
||||||
}
|
}
|
||||||
float cper = 0;
|
float cper = 0;
|
||||||
|
|
Loading…
Reference in New Issue