Open mcraveiro opened 5 years ago
Hehe, that's one way I didn't think of before!
But I agree, it's not good behavior to overwrite the binary, so we should gate that usage.
Thanks @SimonKagstrom. By the by, may I just add that, after years of gcov and associated tooling, kcov was a joy to setup! I had even given up on having code coverage for a while, just out of fear of facing gcov, but then I saw kcov! :-) got it working in slightly over half-a-day for both coveralls and codecov! amazing stuff.
Thanks a lot for this issue!! Really helpful
Hi kcov developers,
Many thanks for a very useful tool. I just did something really silly and it took me a little while to figure it out, which led me to wonder if its not worth alerting users: I set my output directory to the same directory as the binary, and as a result got the following error:
This happened because kcov appears to delete the target binary and create a simlink to the reporting directory, and then (I assume) tries to open the directory as if it as a ELF binary:
It may be worth issuing a warning informing users that their command line options are not sensible :-) Apologies if this has already been submitted, but could not spot it.
Many thanks for your time
Marco