From: Peter Oberparleiter <oberpar@li...> - 2013-09-18 15:53:22
On 08.09.2013 14:15, Song Wang wrote:
> Thers is some problem confuse me, could you help me ?
> I use "gcov -b" to create the *.gcda file, and then use "lcov-1.9 -c -d
> . -o tmp" to create the coverage statistics result, i can see the branch
> coverage like this :[image: 内嵌图片 1]
> but when i use "lcov-1.10 -c -d . -o tmp", the same command with lcov-1.9,
> I saw the result is
> [image: 内嵌图片 2]
> The gcov produce the branches result, but lcov-1.10 don't statistics
> branches result.
> could you tell me the reason?
LCOV 1.10 has branch coverage disabled per default. You can enable it by
modifying the lcovrc file (see man lcovrc) or by specifying --rc
lcov_branch_coverage=1 when running lcov/genhtml.
Linux on System z Development - IBM Germany