jeudi 1 décembre 2016

Lcov 1.12: can not collect branch coverage statistics

So I've run into problem that was already asked here and here, but no help from there - tried all suggestions. Besides, these questions refer to earlier version of lcov, which since then gained some functionality and may work differently now.

My problem starts after running lcov and the result is similar to this:

Overall coverage rate:
lines......: 100.0% (60 of 60 lines)
functions..: 100.0% (26 of 26 functions)
branches...: no data found

I've already tried "-rc lcov_branch_coverage=1" lcov option, i've tried enabling this option in lcovrc, but no luck. I was testing this on lcov 1.12 and bunch of gcc (containing gcov) from version 4.7.4 thru 4.8.5 to 5.4.0.

The workflow was working until update from lcov 1.9 to 1.12. So maybe an issue with lcov? or compiler? how to check if compiler generated branch coverage information? Please help.

Aucun commentaire:

Enregistrer un commentaire