Skip to content
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

fix coverage reporting for gcc 8 and code that uses templates #157

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hendrikmuhs
Copy link

gcc 8 extended the output of gcov, some of the issue have been fixed, e.g. #127, #140
However the new reporting for "instances" is missing. As a result cpp-coveralls reports:

  • more lines than the file has
  • counters are getting misaligned as the lines counter is unchecked

The fix is quite simple: ignore lines that are smaller than the size of the array. This works because gcov reports the total number of executions in the 1st occurrences, the instance reports than report the individual counts which sum up to the total count. For now coveralls does not support template variants, therefore we can just skip over it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant