Lukas Atkinson

Results 56 comments of Lukas Atkinson

I'm not familiar with how ceedling invokes gcovr. Is there any way to get the gcovr command line invocation? How is the project structured? Too many variables to tell what's...

The linked [logfile](https://github.com/ThrowTheSwitch/Ceedling/files/7671048/gcovr_log.txt) provides the following relevant information: * operating system: Windows * gcovr version: 5.0 * gcovr is invoked as `'gcovr --root "." --exclude "^vendor.*|^build.*|^test.*|^lib.*" --branches --sort-percentage --xml-pretty --xml...

@seppeon, @MichaelBMiner, which compiler version were you using? We've recently become aware that gcovr struggles processing coverage data from GCC 11 (cf #597), which might be related.

Thank you for this report! It seems that we are indeed ignoring the gcov exit code (see the subprocess call in [`gcovr.gcov`](https://github.com/gcovr/gcovr/blob/e692552e76ed28a4d2cfc38d5b962c4b4f6142cd/gcovr/gcov.py#L653)). However, gcovr works in a way that calls...

Thank you @loximann for reminding me of this issue :) You are absolutely right that this is a bad failure mode. Unfortunately I'm swamped with other stuff to do and...

I don't think this is possible. Not only would lcov have to expand those macros in order to understand whether a line/branch should be excluded, comments are also removed by...

Are you compiling with optimizations? If so, the compiler will likely inline the `Parent::method1()` call. The inlining should preserve correct coverage metadata, but the coverage data only reflects the structure...

To cover the parent method, you will need to create a test that invokes the parent method – I've included such an example at the end of my previous comment....

The .gcno and .gcda files with coverage data contain the compiler version. The format of these files can change with each GCC release. You generated the .gcno file with GCC...

Does the issue persist if you remove the `-j 8` option? This option doesn't make gcovr any faster in most cases, but has led to similar bugs in the past.