-
Notifications
You must be signed in to change notification settings - Fork 238
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
C++ branch coverage false positives #101
Comments
Yes.
See my earlier replies WRT ‘branch filtering’ – which is implemented in my version of the code.
See “differential coverage” and the related descriptions and pull request.
|
Reference PR of @henry2cox: #86 |
@henry2cox your branch at https://github.com/henry2cox/lcov/tree/8728189f3e04a3efe0c2778de6c4a2e0cdb0d17d is unstable. I see incorrect result for the same input.
|
Nice to see the results. So here is what I did on my Ubuntu 20.04.1 LTS. Can you tell me what I'm missing?
|
I've raised henry2cox#1 to fix the issue with |
Are there any news about this topic? |
Hi - |
Resolved no-external issue by removing the option from |
I think this issue (bogus branch coverpoints) is addressed in SHA 5f659f6 (as discussed above). If you think that the issue is resolved: please close this issue. Henry |
Hey @henry2cox looks like your PR got merged. Congrats. Great work on that. I'll test from the master branch of this repo when I get time and close this issue after that. |
Works as expected with |
wrong version. |
Just curious, how does this get downstreamed to different distros, say the next version of Ubuntu? Do you notify them or do they track and pull the latest? |
Now there you have me. No idea. |
Looks like you did not update to TOT (top of tree) - or you are not using the TOT version that you updated. |
Hello @yi452873250 |
When using g++, there are many false positives with branch coverage, caused by standard operators and libraries, caused by
if (ptr != NULL)
checks employed by the compiler. Is there a way to ignore such false positives? False positives withprintf
is not persistent if we use a gcc.Sample code
Steps
Output
With GCC 4.8.5 on RHEL7
The text was updated successfully, but these errors were encountered: