lundi 20 juillet 2020

lcov shows my code does not covered by test but actually it did

I found my coverage report generated by the lcov is not correct. I'm sure some code lines be tested according to the log I print out. But the coverage report shows it did not.

The code is written in C language. The compile flags is '-g -O0 -fprofile-arcs -ftest-coverage". I wonder if someone encountered the same problem and know how to fix it.

Thanks in advance.

Aucun commentaire:

Enregistrer un commentaire