Module: wine Branch: master Commit: f21e262491557ac6651c294dcbb6d17a63ee18c7 URL: https://gitlab.winehq.org/wine/wine/-/commit/f21e262491557ac6651c294dcbb6d17...
Author: Hans Leidekker hans@codeweavers.com Date: Tue Dec 6 16:21:49 2022 +0100
wldap32/tests: Skip paged search tests when the server can't be reached.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54075
---
dlls/wldap32/tests/parse.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/dlls/wldap32/tests/parse.c b/dlls/wldap32/tests/parse.c index f30912324ba..8394d5eeeff 100644 --- a/dlls/wldap32/tests/parse.c +++ b/dlls/wldap32/tests/parse.c @@ -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 );