Wireshark-dev: Re: [Wireshark-dev] Builds without PCAP fail the unit tests

From: Antoine d'Otreppe <a.dotreppe@xxxxxxxxxx>
Date: Tue, 18 Dec 2018 19:47:39 +0000
Yes, those are the tests I was referring to.

Well then it's all fine I guess. Thanks for clearing that up :)




‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Tuesday, December 18, 2018 8:45 PM, Guy Harris <guy@xxxxxxxxxxxx> wrote:

> On Dec 18, 2018, at 11:18 AM, Antoine d'Otreppe a.dotreppe@xxxxxxxxxx wrote:
>
> > Half of my builds, those without PCAP, failed recently on travis during the test step:
> > https://travis-ci.org/aspyct/wireshark/builds/469639514
>
> If by "the unit tests" you're referring to the tests in the "test" subdirectory of the source tree, this should not be surprising, given that one of those tests is in test/suite_capture.py, and "capture" means "we test packet capturing".
>
> If we're going to support running the unit tests on builds without libpcap/WinPcap/Npcap, we should have the test suite somehow figure out whether Wireshark was built with the pcap library and only run the capture tests if it was.