-
Notifications
You must be signed in to change notification settings - Fork 287
Description
Describe the bug
For unknown reasons, there is a part of coverage report than is not working properly on one of my functions.
The line coverage results in 1095216660480 (255 * 2^32) on just a few lines, even if the function is not called.
I am unsure if this is related, but the following warning also occurs during the gcovr call:
(WARNING) Ignoring negative hits in line 'branch 1 taken -1095216660478'.
I do not use any jump instructions. It is just if/else condition within a function.
Moving the function definition to another position in the same file seems to solve the problem for now.
To Reproduce
I sadly do not know how to reproduce this issue. The code is not shareable, and I do not manage to reproduce it in a dummy project yet. I will update this issue if I manage to setup an minimum code example.
Expected behavior
The code coverage should be similar to the second screenshot. The second part of the branch coverage is affected by the error.
After moving the code to another place in the same source file:
Desktop:
- OS: ubuntu 22.04
- GCC version 11.4
- GCOVR version 6.0