Skip to content

Commit ddf1aa0

Browse files
committed
Fix coverage-lcov target for lcov v2.x
1 parent 57d4446 commit ddf1aa0

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Makefile.pre.in

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ coverage-lcov:
917917
@lcov $(COVERAGE_LCOV_OPTIONS) --capture \
918918
--directory $(abs_builddir) \
919919
--base-directory $(realpath $(abs_builddir)) \
920-
--path $(realpath $(abs_srcdir)) \
920+
--ignore-errors negative \
921921
--output-file $(COVERAGE_INFO)
922922
@ # remove 3rd party modules, system headers and internal files with
923923
@ # debug, test or dummy functions.
@@ -931,8 +931,13 @@ coverage-lcov:
931931
'/usr/include/*' \
932932
'/usr/local/include/*' \
933933
'/usr/lib/gcc/*' \
934+
--ignore-errors inconsistent \
935+
--ignore-errors negative \
936+
--ignore-errors unused \
934937
--output-file $(COVERAGE_INFO)
935938
@genhtml $(COVERAGE_INFO) \
939+
--ignore-errors inconsistent \
940+
--ignore-errors negative \
936941
--output-directory $(COVERAGE_REPORT) \
937942
$(COVERAGE_REPORT_OPTIONS)
938943
@echo

0 commit comments

Comments
 (0)