Getting gcov's output when the program is killed

Ludovic Courtès ludo@gnu.org
Fri Feb 26 15:26:00 GMT 2010


Hello,

I’m doing test coverage on a daemon.  The daemon is tested by a script
that launches it and eventually terminates it with kill(1).  However,
the corresponding gcda files are not updated with actual coverage data.

How can gcov be told to flush its coverage data to disk when the program
is killed?

Thanks,
Ludo’.



More information about the Gcc-help mailing list