Have lcov exclude external files

Call lcov with --no-external option to exclude external files (for
example, system headers with inline functions) from output.

Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
This commit is contained in:
Peter Eisentraut 2017-08-10 23:33:47 -04:00
parent 504923a0ed
commit 66fd86a6a3
1 changed files with 1 additions and 1 deletions

View File

@ -896,7 +896,7 @@ coverage-html-stamp: lcov.info
all_gcda_files = $(shell find . -name '*.gcda' -print)
lcov.info: $(all_gcda_files)
$(LCOV) -d . -c -o $@ $(LCOVFLAGS) --gcov-tool $(GCOV)
$(LCOV) -d . -c -o $@ $(LCOVFLAGS) --gcov-tool $(GCOV) --no-external
# hook for clean-up