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>
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)