Enable branch coverage in coverage reports

Closes #892
This commit is contained in:
Jack Grigg 2016-08-16 18:32:56 +12:00
parent d7da4ecc33
commit 6ecb05dd2f
1 changed files with 2 additions and 1 deletions

View File

@ -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