mirror of
https://gitlab.winehq.org/wine/wine.git
synced 2024-11-21 17:09:06 -07:00
wpcap/tests: Skip tests when pcap_can_set_rfmon() returns PCAP_ERROR_PERM_DENIED.
This commit is contained in:
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
1 changed files with 6 additions and 0 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue