linux-test-project / lcov

LCOV
GNU General Public License v2.0
867 stars 235 forks source link

geninfo can't continue on find errors #241

Closed abussy-aldebaran closed 9 months ago

abussy-aldebaran commented 9 months ago

I got the error:

geninfo: ERROR: Error return code from 'find "myDir" ...':

When I run find . -name "*.gcno", all the .gcno paths are returned, there is just one Permission denied in the middle, which I'm ok to ignore. But find returns a non-zero exit code, which causes the error in geninfo. Would it be possible to ignore such errors from find ?

henry2cox commented 9 months ago

yeah - possible. Right now, we call die. Straightforward to turn that into an 'ignorable_error' (but then a bit painful to write the regression test to prove that the feature works). Will add to the list.

abussy-aldebaran commented 9 months ago

I understand. I've been able to write a small reproducible scenario in bash if it can help you.

mkdir test
chmod -r test
lcov --capture --directory .
henry2cox commented 9 months ago

Thanks...I added one as well :-) Will push various fixes and updates fairly soon (I hope).

henry2cox commented 9 months ago

fixed in 0653f1e717c - pushed this morning. Please go ahead and close this issue if the fix seems sufficient. Thanks

abussy-aldebaran commented 9 months ago

It works perfectly, thanks !