From: Aaron Merey Date: Tue, 12 Aug 2025 14:39:58 +0000 (-0400) Subject: Makefile.am: Add errors to lcov ignore list X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c657300fc81241aac9a2859c2f538bec3a5bf89d;p=thirdparty%2Felfutils.git 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 --- 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)