wpcap/tests: Skip tests when pcap_can_set_rfmon() returns PCAP_ERROR_PERM_DENIED.

This commit is contained in:
Hans Leidekker 2024-09-02 15:43:24 +02:00 committed by Alexandre Julliard
parent 5bebb24108
commit 1b5554e8cc
Notes: Alexandre Julliard 2024-09-02 22:59:33 +02:00
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/wine/merge_requests/6426

View file

@ -152,6 +152,12 @@ static void test_capture( void )
ok( !ret, "got %d\n", ret );
ret = ppcap_can_set_rfmon( pcap );
if (ret == PCAP_ERROR_PERM_DENIED)
{
skip( "no permission\n" );
ppcap_close( pcap );
return;
}
ok( ret == 0 || ret == 1, "got %d\n", ret );
ret = ppcap_getnonblock( pcap, errbuf );