1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

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

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55784
This commit is contained in:
Hans Leidekker 2024-01-10 11:28:29 +01:00 committed by Alexandre Julliard
parent 98b053a5b8
commit 928d73d4ef

View file

@ -169,6 +169,12 @@ static void test_ldap_bind_sA( void )
}
ret = ldap_connect( ld, NULL );
if (ret == LDAP_SERVER_DOWN)
{
skip( "test server can't be reached\n" );
ldap_unbind( ld );
return;
}
ok( !ret, "ldap_connect failed %#lx\n", ret );
ret = ldap_bind_sA( ld, (char *)"uid=winetest,ou=users,dc=debian,dc=org", (char *)"winetest",
@ -511,6 +517,12 @@ static void test_opt_ssl(void)
ret = ldap_set_optionA( ld, LDAP_OPT_SSL, LDAP_OPT_ON );
ok( !ret, "ldap_set_optionA should succeed, got %#lx\n", ret );
ret = ldap_simple_bind_sA( ld, NULL, NULL );
if (ret == LDAP_SERVER_DOWN)
{
skip( "test server can't be reached\n" );
ldap_unbind( ld );
return;
}
todo_wine ok( ret == LDAP_PROTOCOL_ERROR, "ldap_simple_bind_sA should fail, got %#lx\n", ret );
ldap_unbind( ld );