[cmake-developers] CTest vs. gcov

Rolf Eike Beer eike at sf-mail.de
Wed Feb 15 15:51:05 EST 2012


> So if no lines are covered then it reports 'Covered="false"' which leads
> CDash to entirely ignoring the line count and not showing a link to the
> file. In contrast it does that when collecting files using
> CTEST_EXTRA_COVERAGE_GLOB:
> 
>     covSumFile << "\t<File Name=\"" << cmXMLSafe(fileName)
>       << "\" FullPath=\"" << cmXMLSafe(i->c_str())
>       << "\" Covered=\"true\">\n"
>       << "\t\t<LOCTested>0</LOCTested>\n"
>       << "\t\t<LOCUnTested>" << untested << "</LOCUnTested>\n"
> 
> Covered is always set to true here. So the quick and dirty fix I used was to
> change the one line to
> 
>       << "\" Covered=\"" << (tested+untested > 0 ? "true":"false") <<
> "\">\n"

Pushed as 58d75e22ae3ed4279b0596eeab73063719bb61d0 to next.

Eike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20120215/d8d38a75/attachment.sig>


More information about the cmake-developers mailing list