]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Makefile.am: Add errors to lcov ignore list
authorAaron Merey <amerey@redhat.com>
Tue, 12 Aug 2025 14:39:58 +0000 (10:39 -0400)
committerAaron Merey <amerey@redhat.com>
Tue, 12 Aug 2025 14:39:58 +0000 (10:39 -0400)
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 <amerey@redhat.com>
Makefile.am

index 76e98f603a405b16641bafd98136ed3d2b008021..fa6fda34471b8816b668645da75dd902c63f0c4c 100644 (file)
@@ -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)