Wireshark-dev: Re: [Wireshark-dev] code coverage measurement for a dissector?
From: Németh Márton <[email protected]>
Date: Thu, 03 Jan 2008 07:56:53 +0100
Stig Bjørlykke wrote:
> On 3. jan.. 2008, at 00.19, Németh Márton wrote:
>> I started with "make distclean". What is your gcc version?
> gcc (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
> It compiles ok, but I don't get any gcov output for the dissectors  
> (which is in a lib).  Maybe I'm doing it wrong...

I attached a simple test project for coverage, which is working
for me. What you can verify is that after compiling the *.gcno files
should be created beside the *.o files.

When you execute Wireshark and exit, *.gcda file should be created

	Márton Németh

Attachment: coverage-test.tar.bz2
Description: Binary data