SHA256
3
0
forked from pool/cmake
cmake/cmake-2.6.0-fix_ctest_coverage.patch

14 lines
737 B
Diff

Subject: Fix CTest coverage xml generation.
Bugzilla: http://public.kitware.com/Bug/view.php?id=6988
--- Source/CTest/cmCTestCoverageHandler.cxx
+++ Source/CTest/cmCTestCoverageHandler.cxx
@@ -538,7 +538,7 @@ int cmCTestCoverageHandler::ProcessHandl
covSumFile << "\t<File Name=\"" << this->CTest->MakeXMLSafe(fileName)
<< "\" FullPath=\"" << this->CTest->MakeXMLSafe(
this->CTest->GetShortPathToFile(fullFileName.c_str()))
- << "\" Covered=\"" << (tested==0?"true":"false") << "\">\n"
+ << "\" Covered=\"" << (tested > 0?"true":"false") << "\">\n"
<< "\t\t<LOCTested>" << tested << "</LOCTested>\n"
<< "\t\t<LOCUnTested>" << untested << "</LOCUnTested>\n"
<< "\t\t<PercentCoverage>";