-
-
Notifications
You must be signed in to change notification settings - Fork 34.7k
gh-151001: fix coverage-lcov target for lcov v2.x #151008
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -917,7 +917,7 @@ coverage-lcov: | |
| @lcov $(COVERAGE_LCOV_OPTIONS) --capture \ | ||
| --directory $(abs_builddir) \ | ||
| --base-directory $(realpath $(abs_builddir)) \ | ||
| --path $(realpath $(abs_srcdir)) \ | ||
| --ignore-errors negative \ | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i added after getting error ..
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hmm, but it looks off, as in diff it looks like |
||
| --output-file $(COVERAGE_INFO) | ||
| @ # remove 3rd party modules, system headers and internal files with | ||
| @ # debug, test or dummy functions. | ||
|
|
@@ -931,8 +931,13 @@ coverage-lcov: | |
| '/usr/include/*' \ | ||
| '/usr/local/include/*' \ | ||
| '/usr/lib/gcc/*' \ | ||
| --ignore-errors inconsistent \ | ||
| --ignore-errors negative \ | ||
| --ignore-errors unused \ | ||
| --output-file $(COVERAGE_INFO) | ||
| @genhtml $(COVERAGE_INFO) \ | ||
| --ignore-errors inconsistent \ | ||
| --ignore-errors negative \ | ||
| --output-directory $(COVERAGE_REPORT) \ | ||
| $(COVERAGE_REPORT_OPTIONS) | ||
| @echo | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Fix ``make coverage-lcov`` to work with lcov v2.x. Remove the ``--path`` option which was repurposed in lcov v2, and add ``--ignore-errors negative,inconsistent,unused`` flags to handle stricter validation introduced in lcov v2. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this argument was needed before?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--pathwas added in 2013 (commit 49e52f9) with--base-directory, but the commit message doesn't explain its specific purpose but further it was changed, and now means "Strip PATH from tracefile when applying diff"