mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 09:35:52 +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:
parent
02e70fcbb0
commit
f21e262491
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue