Wireshark

  • Riverbed Technology
  • WinPcap
the world's foremost network protocol analyzer
  • Wireshark
    • About
    • Download
    • Blog
  • Get Help
    • Ask a Question
    • FAQs
    • Documentation
    • Mailing Lists
    • Online Tools
    • Wiki
    • Bug Tracker
  • Develop
    • Get Involved
    • Developer's Guide
    • Browse the Code
    • Latest Builds

Wireshark-dev: Re: [Wireshark-dev] code coverage measurement for a dissector?

Date Index Thread Index Other Months All Mailing Lists
Date Prev Date Next Thread Prev Thread Next


From: Németh Márton <nm127@xxxxxxxxxxx>
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
somewhere.

	Márton Németh

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

  • References:
    • [Wireshark-dev] code coverage measurement for a dissector?
      • From: Németh Márton
    • Re: [Wireshark-dev] code coverage measurement for a dissector?
      • From: Stephen Fisher
    • Re: [Wireshark-dev] code coverage measurement for a dissector?
      • From: Németh Márton
    • Re: [Wireshark-dev] code coverage measurement for a dissector?
      • From: Stig Bjørlykke
    • Re: [Wireshark-dev] code coverage measurement for a dissector?
      • From: Németh Márton
    • Re: [Wireshark-dev] code coverage measurement for a dissector?
      • From: Stig Bjørlykke
  • Prev by Date: Re: [Wireshark-dev] crash with Preference in Plugin
  • Next by Date: Re: [Wireshark-dev] code coverage measurement for a dissector?
  • Previous by thread: Re: [Wireshark-dev] code coverage measurement for a dissector?
  • Next by thread: Re: [Wireshark-dev] code coverage measurement for a dissector?
  • Index(es):
    • Date
    • Thread

Wireshark and the "fin" logo are registered trademarks of the Wireshark Foundation