From 6ecb05dd2f346dfd406293349affe5ba708660aa Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Tue, 16 Aug 2016 18:32:56 +1200 Subject: [PATCH] Enable branch coverage in coverage reports Closes #892 --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 5cbf6fffb..b5e04b168 100644 --- a/configure.ac +++ b/configure.ac @@ -356,7 +356,8 @@ if test x$use_lcov = xyes; then if test x$use_comparison_tool = x; then AC_MSG_ERROR("lcov testing requested but comparison tool was not specified") fi - LCOV="$LCOV --gcov-tool=$GCOV" + LCOV="$LCOV --gcov-tool=$GCOV --rc lcov_branch_coverage=1" + GENHTML="$GENHTML --branch-coverage" AX_CHECK_COMPILE_FLAG([--coverage],[CXXFLAGS="$CXXFLAGS --coverage"], [AC_MSG_ERROR("lcov testing requested but --coverage flag does not work")]) fi