1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 03:45:57 +00:00

wldap32/tests: Skip paged search tests when the server can't be reached.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54075
This commit is contained in:
Hans Leidekker 2022-12-06 16:21:49 +01:00 committed by Alexandre Julliard
parent 02e70fcbb0
commit f21e262491

View File

@ -242,6 +242,12 @@ static void test_ldap_paged_search(void)
count = 0xdeadbeef;
res = NULL;
ret = ldap_get_next_page_s( ld, search, NULL, 1, &count, &res );
if (ret == LDAP_SERVER_DOWN || ret == LDAP_UNAVAILABLE)
{
skip( "test server can't be reached\n" );
ldap_unbind( ld );
return;
}
ok( !ret, "ldap_get_next_page_s failed %#lx\n", ret );
ok( res != NULL, "expected res != NULL\n" );
ok( count == 0, "got %lu\n", count );