How can I generate usable coverage reports for a program that ends with execve()
instead of exit()
or a similar function? The second program that is being execve()
d is irrelevant for the coverage report (it is an user supplied program, it could be anything, a Python script, program build without coverage instrumentation etc.). I have tried generating coverage using both gcc
and clang
and the relevant coverage files either don’t get generated or say that no line of code was executed (which is false).