From c657300fc81241aac9a2859c2f538bec3a5bf89d Mon Sep 17 00:00:00 2001 From: Aaron Merey Date: Tue, 12 Aug 2025 10:39:58 -0400 Subject: [PATCH] Makefile.am: Add errors to lcov ignore list Recent versions of lcov may raise the following errors during make coverage: genhtml: ERROR: (corrupt) unable to read trace file 'elfutils.lcov': genhtml: ERROR: (inconsistent) [...] line is hit but no branches on line have been evaluated. Add "inconsistent,corrupt" to the --ignore-errors list so that make coverage exits without error. Signed-off-by: Aaron Merey --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 76e98f60..fa6fda34 100644 --- a/Makefile.am +++ b/Makefile.am @@ -70,7 +70,7 @@ coverage: $(COVERAGE_OUTPUT_INDEX_HTML) if LCOV_OLD ignore_errors = else -ignore_errors = --ignore-errors empty,negative +ignore_errors = --ignore-errors empty,negative,inconsistent,corrupt endif $(COVERAGE_OUTPUT_INDEX_HTML): $(COVERAGE_OUTPUT_FILE) -- 2.47.3