Wireshark-dev: Re: [Wireshark-dev] code coverage measurement for a dissector?
From: Stephen Fisher <[email protected]>
Date: Tue, 1 Jan 2008 17:01:51 -0700
On Tue, Jan 01, 2008 at 11:37:30PM +0100, Németh Márton wrote:

> I would like to write some tests for my dissector. To check how far I 
> could cover my dissector code I could use the "--coverage" option of 
> the gcc (see 
> http://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html#index-coverage-375 
> ).
> Where do I have to put the "--coverage" option?

Set the environment variable CFLAGS to "--coverage" and re-run the 
configure script then rebuild Wireshark with make (see ./configure 
--help for more details).

> Will this work together with Wireshark?

Not sure - this is the first I have heard of that gcc option.  Try it 
out and let us know how it went.