mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
wldap32: Skip tests when the server can't be reached.
This commit is contained in:
parent
f6fe073bcf
commit
0c82af8a27
1 changed files with 3 additions and 2 deletions
|
@ -48,12 +48,13 @@ static void test_ldap_parse_sort_control( LDAP *ld )
|
|||
timeout.tv_sec = 20;
|
||||
timeout.tv_usec = 0;
|
||||
ret = ldap_search_ext_sA( ld, (char *)"", LDAP_SCOPE_ONELEVEL, (char *)"(ou=*)", NULL, 0, ctrls, NULL, &timeout, 10, &res );
|
||||
ok( !ret, "ldap_search_ext_sA failed 0x%x\n", ret );
|
||||
if (ret)
|
||||
if (ret == LDAP_SERVER_DOWN)
|
||||
{
|
||||
skip("test server can't be reached\n");
|
||||
ldap_control_free( sort );
|
||||
return;
|
||||
}
|
||||
ok( !ret, "ldap_search_ext_sA failed 0x%x\n", ret );
|
||||
ok( res != NULL, "expected res != NULL\n" );
|
||||
|
||||
ret = ldap_parse_resultA( NULL, res, &result, NULL, NULL, NULL, &server_ctrls, 1 );
|
||||
|
|
Loading…
Reference in a new issue