mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-21 02:50:41 +03:00
lcov: ignore some errors
While building lcov files - ignore errors from 'negative' counter (perhaps we can use -fprofile-update=atomic - but it would be another slowdown of test runs) Also ignore unexecuted blocks warnings with 'gcov'. Failure of lcov goal is not supposed to error whole make build.
This commit is contained in:
parent
8a67936e7e
commit
852f3c20bb
@ -194,7 +194,7 @@ ifneq ("$(GENHTML)", "")
|
||||
lcov:
|
||||
$(RM) -rf $(LCOV_REPORTS_DIR)
|
||||
$(MKDIR_P) $(LCOV_REPORTS_DIR)
|
||||
$(LCOV) --capture --directory $(top_builddir) --ignore-errors source \
|
||||
-$(LCOV) --capture --directory $(top_builddir) --ignore-errors source,negative,gcov \
|
||||
--output-file $(LCOV_REPORTS_DIR)/out.info
|
||||
-test ! -s $(LCOV_REPORTS_DIR)/out.info || \
|
||||
$(GENHTML) -o $(LCOV_REPORTS_DIR) --ignore-errors source \
|
||||
|
Loading…
x
Reference in New Issue
Block a user