6db63012 CTest: fix crash if source file for coverage cannot be found Acked-by: Kitware Robot <[email protected]> Merge-request: !1289
@@ -560,6 +560,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;