-
Notifications
You must be signed in to change notification settings - Fork 242
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
geninfo: ERROR: (negative) Unexpected negative hit count '-88' #272
Comments
Any help will be really appreciated. |
Is the question "why do I see these errors?" - or "how do I make the tool no longer report these errors?" or "how do I fix my code so that these errors no longer occur?" - or something different? Looks like you are using gcc/11.4.1. I have seen all of the errors you see at one time or another - that's why lcov checks for them. Some of the messages that I would be concerned about:
Hope this helps. Henry |
==>> yes, my question is, why tools produce these errors, and does it has any effect in manipulating the code coverage?
=====>> yes I have compiled with same kernel version |
Your command line above does not appear to use either What does appear in your command line is With respect to "... does it [have] any effect .. [on] code coverage?"
If you choose that route - and if your application is important/you require a high degree of confidence for your embedded system or critical application, then I would take a careful look at the coverage reports to verify that the data makes sense.
|
Actually - I see that there is a discussion of some of the same issues you see, in #185. I don't think there is an lcov bug here - or, if there is a bug, I am not sure what it is. |
In the spirit of cleaning up the issue list, could you either add a testcase which reproduces the problem if you think that there is an lcov bug here, or go ahead and close this issue if you think that this was not a bug (or is a gcc rather than lcov issue). |
Closing this issue now. If there is still a problem, please either reopen this issue or file a new one. Please include a testcase which illustrates the bug. |
I am trying to get the code coverage using lcov and getting following errors and warnings,
The text was updated successfully, but these errors were encountered: