From 0e0cdc2409b6ddb5589ff26b5b94f6b9adfd5c51 Mon Sep 17 00:00:00 2001 From: Darshit Shah Date: Mon, 19 Feb 2024 19:21:03 +0530 Subject: [PATCH] * Makefile.am: Ignore some lcov errors, allowing the tests to run through --- Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 57d44a31..96b6acf5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -92,8 +92,8 @@ check-coverage: clean clean-lcov lcov --capture --initial --directory src/ --output-file $(LCOV_INFO) $(MAKE) CFLAGS="$(CFLAGS) --coverage" LDFLAGS="$(LDFLAGS) --coverage" VALGRIND_TESTS=0 check lcov --capture --directory src/ --output-file $(LCOV_INFO) - lcov --remove $(LCOV_INFO) '/usr/include/*' '*/lib/*' -o $(LCOV_INFO) - genhtml --prefix . --ignore-errors source $(LCOV_INFO) --legend --title "Wget" --output-directory=lcov + lcov --remove $(LCOV_INFO) --ignore-errors unused '/usr/include/*' '*/lib/*' -o $(LCOV_INFO) + genhtml --prefix . --ignore-errors source --ignore-errors unmapped $(LCOV_INFO) --legend --title "Wget" --output-directory=lcov @echo @echo "You can now view the coverage report with 'xdg-open lcov/index.html'"