From 852f3c20bbfbf8eed23524dd11e477db86ea7832 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Wed, 12 Feb 2025 14:52:09 +0100 Subject: [PATCH] lcov: ignore some errors While building lcov files - ignore errors from 'negative' counter (perhaps we can use -fprofile-update=atomic - but it would be another slowdown of test runs) Also ignore unexecuted blocks warnings with 'gcov'. Failure of lcov goal is not supposed to error whole make build. --- Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 06c4b1823..59c71a945 100644 --- a/Makefile.in +++ b/Makefile.in @@ -194,7 +194,7 @@ ifneq ("$(GENHTML)", "") lcov: $(RM) -rf $(LCOV_REPORTS_DIR) $(MKDIR_P) $(LCOV_REPORTS_DIR) - $(LCOV) --capture --directory $(top_builddir) --ignore-errors source \ + -$(LCOV) --capture --directory $(top_builddir) --ignore-errors source,negative,gcov \ --output-file $(LCOV_REPORTS_DIR)/out.info -test ! -s $(LCOV_REPORTS_DIR)/out.info || \ $(GENHTML) -o $(LCOV_REPORTS_DIR) --ignore-errors source \