Wireshark-dev: [Wireshark-dev] Re: need help with Wireshark test suite

From: Michael Mann <mmann78@xxxxxxxxxxxx>
Date: Fri, 9 Jan 2026 12:48:56 +0000 (UTC)
Capture permissions shouldn't be the issue as its running with admin privileges, and the tests pass without my changes.  The question is more about trying to break down the Python tests so I can run them "in isolation", preferably through MSVC.


On Friday, January 9, 2026 at 04:34:40 AM EST, Eugène Adell <eugene.adell@xxxxxxxxx> wrote:


Hello Michael,

as these tests are related to capturing, are the prerequisites for
capturing with a non-admin user met ? Some hints are given on the wiki
: https://wiki.wireshark.org/CaptureSetup/CapturePrivileges

best regards
Eugène

Le ven. 9 janv. 2026 à 05:16, Michael Mann via Wireshark-dev
<wireshark-dev@xxxxxxxxxxxxx> a écrit :
>
> I'm working on MR 23103 (not really relevant/required for my questions) and it's failing some of the automated Python test suite, specifically:
> test_wireshark_capture_10_packets_to_file
> test_wireshark_capture_from_stdin
> test_wireshark_capture_snapshot_len
>
> I've bisected the patch down to the smallest change possible of the pass/fail criteria, but I'm still not having any luck identifying the (code) problem. The failures are "heap corruption", which I can see as a possibility given my code changes, but a call stack when it happens would go a long way to helping me hunt down the source of problem.
> Many times previously I could look at what the suite test is doing and run the individual capture file in Wireshark/tshark to find the source of my problem.  But it looks like these tests are piping "static" capture files through to Wireshark (so they look like captured packets).  Am I reading that correctly? (my Python skills are beginner level).  Any tips to potentially hook this up to a debugger (MSVC on Windows) or generating a crash report?  Or steps to reproduce the test in MSVC (without Python)?
>
> _______________________________________________
> Wireshark-dev mailing list -- wireshark-dev@xxxxxxxxxxxxx
> To unsubscribe send an email to wireshark-dev-leave@xxxxxxxxxxxxx