diff options
author | Brad King <brad.king@kitware.com> | 2017-09-20 11:46:00 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-09-20 11:46:09 (GMT) |
commit | 4f971e700a959fccbea3d7610bf6c02007cd87b6 (patch) | |
tree | 9bd11ab0ca088ac85e89ff76fb02c8b2c84c2159 /Source/CTest/cmCTestCoverageHandler.cxx | |
parent | 33ead73d731c93399dba5da5bc299f3ca32beb45 (diff) | |
parent | 6db63012057a82b3528ede3f259684f3429731d5 (diff) | |
download | CMake-4f971e700a959fccbea3d7610bf6c02007cd87b6.zip CMake-4f971e700a959fccbea3d7610bf6c02007cd87b6.tar.gz CMake-4f971e700a959fccbea3d7610bf6c02007cd87b6.tar.bz2 |
Merge topic 'CTest-crash-missing-glob'
6db63012 CTest: fix crash if source file for coverage cannot be found
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1289
Diffstat (limited to 'Source/CTest/cmCTestCoverageHandler.cxx')
-rw-r--r-- | Source/CTest/cmCTestCoverageHandler.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestCoverageHandler.cxx b/Source/CTest/cmCTestCoverageHandler.cxx index 2d5350d..70f011a 100644 --- a/Source/CTest/cmCTestCoverageHandler.cxx +++ b/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; |