mirror of
https://github.com/reactos/CMake.git
synced 2024-12-01 07:20:22 +00:00
CTest: fix crash if source file for coverage cannot be found
The opened XML elements were not closed, so an assert was triggered when the file was finally closed. If CMake is built with assertions disabled then an invalid XML file will be produced.
This commit is contained in:
parent
d44202ef05
commit
6db6301205
@ -570,6 +570,8 @@ int cmCTestCoverageHandler::ProcessHandler()
|
||||
ostr << "Cannot open source file: " << fullPath;
|
||||
errorsWhileAccumulating.push_back(ostr.str());
|
||||
error++;
|
||||
covLogXML.EndElement(); // Report
|
||||
covLogXML.EndElement(); // File
|
||||
continue;
|
||||
}
|
||||
int untested = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user