-
Notifications
You must be signed in to change notification settings - Fork 283
zero coverage rate #524
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 8000 GitHub? Sign in to your account
Comments
No GCC version 13 currently exists. This could indicate that your Could you re-run your steps but in step 4 replace |
o@latk You are right.
If I run the command I get the following output:
The content of the gcov file is:
If I run the same command in the source directory the gcov file also contains the source code and the coverage data. It seems that the gcov treats the file path relati
8000
ve to the current working directory instead of From the help:
Why is gcov called in a temporary directory? |
I think this is related to the
And it seems, this issue is pointing to a third problem: that LLVM's gcov emulation handles path resolution a bit differently. |
What about using |
Turns out that |
Thanks ffor the link, I've found the reason (#3 (comment)):
My suggestion is to remove the temporary directory and the directory lock and adding the option |
i can get the example.cpp.gcov use 'gcov ./example.cpp' , can not get it use 'gcovr --keep' |
I solved this problem. but i still don not know why 'gcovr -r . ' fail. |
As I wrote, it depends on the working directory of the gcoc command. |
i can not find '--long-file-names' option. |
That's an option of |
After a little bit debugging I found the problem. I running
This message is catched in Line 430 in 9c88a8d
In the clang implementation the message is:
I'll remove the temporary directory extend the regex to also catch this message. |
Describe the bug
i try the demo in the "get start page" and get zero coverage rate.
To Reproduce
Steps to reproduce the behavior:
Successful generation of example.gcda,example.gcno file.
Successful run gcov example.cpp ,display Lines executed:87.50% of 8
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: