lcov-check: Enable branch coverage on newer lcov versions
authorDaniel Willmann <d.willmann@samsung.com>
Thu, 25 Apr 2013 09:49:36 +0000 (10:49 +0100)
committerDaniel Willmann <d.willmann@samsung.com>
Thu, 25 Apr 2013 09:49:36 +0000 (10:49 +0100)
In newer versions branch coverage is disabled by default. Re-enable it
explicitly.

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
Makefile.am

index 781c5d948738836ba83aae13fb49cd087b916747..8a3325035cd36699eee4b99d9e9a2b712bf2e1f7 100644 (file)
@@ -300,7 +300,7 @@ lcov-report:
        lcov --capture --compat-libtool --output-file $(top_builddir)/coverage/coverage.info --directory $(top_builddir) --base-directory $(top_srcdir)/src/
        lcov --remove $(top_builddir)/coverage/coverage.info '*.h' --output-file $(top_builddir)/coverage/coverage.cleaned.info
        lcov --remove $(top_builddir)/coverage/coverage.cleaned.info '*/tests/*' --output-file $(top_builddir)/coverage/coverage.cleaned2.info
-       genhtml -t "$(PACKAGE_STRING)" -o $(top_builddir)/coverage/html $(top_builddir)/coverage/coverage.cleaned2.info
+       genhtml --branch-coverage -t "$(PACKAGE_STRING)" -o $(top_builddir)/coverage/html $(top_builddir)/coverage/coverage.cleaned2.info
        @echo "Coverage Report at $(top_builddir)/coverage/html"
 
 endif