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

GCNO files without GCDA pair is not displayed in html #100

Closed
mrx23dot opened this issue May 28, 2015 · 3 comments

Comments

@mrx23dot
Copy link

@mrx23dot mrx23dot commented May 28, 2015

Some times MinGW doesn't generate GCDA file for uncovered GCNO file.
And those files are not displayed in html, so we might forget to write test cases for them.
A placeholder (uncovered html) would be nice for these source files.

@marco-c

This comment has been minimized.

Copy link

@marco-c marco-c commented Feb 27, 2018

The solution would be to make gcovr run gcov for each GCNO file and not for each GCDA file.
This would generate a report for uncovered source files too (showing them as uncovered).

@latk

This comment has been minimized.

Copy link
Member

@latk latk commented Mar 13, 2019

Gcovr does run for .gcno files even when no .gcda was found so this use case should already work.

Nevertheless, there have been repeated issues with this. Possibly, this depends on the exact gcov version being used, as there are reports of gcov refusing to produce a gcov file without coverage (like #298, which also mentions #33 and #154).

Until a reproducible example is made available by affected users, this cannot be fixed. I am closing in the meanwhile.

@latk latk closed this Mar 13, 2019
@latk

This comment has been minimized.

Copy link
Member

@latk latk commented Mar 13, 2019

This seems to have been an upstream bug in some versions of gcov. Users can avoid this by upgrading GCC. I think this bug was fixed in GCC Revision 239413 on 2016-08-12 (gcc-mirror/gcc@6d5f72f). I would expect all later releases (5.5+, 6.2+, 7+) to include the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.