Przeglądaj źródła

Merge topic 'CTest-crash-missing-glob'

6db63012 CTest: fix crash if source file for coverage cannot be found

Acked-by: Kitware Robot <[email protected]>
Merge-request: !1289
Brad King 8 lat temu
rodzic
commit
4f971e700a
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      Source/CTest/cmCTestCoverageHandler.cxx

+ 2 - 0
Source/CTest/cmCTestCoverageHandler.cxx

@@ -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;