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 <ame...@redhat.com> --- 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.50.1