Have lcov exclude external files
authorPeter Eisentraut <peter_e@gmx.net>
Fri, 11 Aug 2017 03:33:47 +0000 (23:33 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 28 Sep 2017 12:50:11 +0000 (08:50 -0400)
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>
src/Makefile.global.in

index f352ba20e20f9e3fdfe7dc838103b0df2e1a75af..2b22f0de2997fb72a5e4fcbec4ed6a477c095c95 100644 (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