mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-21 14:14:09 +00:00
secur32/tests: Skip the tests instead of crashing if Kerberos is not supported.
This avoids a crash when Wine is compiled using --without-krb5. This makes test_ticket_cache() more consistent with test_kerberos().
This commit is contained in:
parent
8f7483d04b
commit
db89311aa1
|
@ -446,7 +446,7 @@ static void test_kerberos(void)
|
||||||
|
|
||||||
|
|
||||||
status = QuerySecurityPackageInfoA(provider, &info);
|
status = QuerySecurityPackageInfoA(provider, &info);
|
||||||
ok(status == SEC_E_OK, "Kerberos package not installed, skipping test\n");
|
ok(status == SEC_E_OK, "Kerberos package not installed (%08lx), skipping test\n", status);
|
||||||
if(status != SEC_E_OK)
|
if(status != SEC_E_OK)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -479,7 +479,12 @@ static void test_ticket_cache(void)
|
||||||
|
|
||||||
RtlInitAnsiString( &name, MICROSOFT_KERBEROS_NAME_A );
|
RtlInitAnsiString( &name, MICROSOFT_KERBEROS_NAME_A );
|
||||||
status = LsaLookupAuthenticationPackage( lsa, &name, &package );
|
status = LsaLookupAuthenticationPackage( lsa, &name, &package );
|
||||||
ok( !status, "got %08lx\n", status );
|
ok(status == SEC_E_OK, "Kerberos package not installed (%08lx), skipping test\n", status);
|
||||||
|
if(status != SEC_E_OK)
|
||||||
|
{
|
||||||
|
LsaDeregisterLogonProcess( lsa );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
status = LsaCallAuthenticationPackage( lsa, package, &req, sizeof(req), (void **)&resp, &len, &status );
|
status = LsaCallAuthenticationPackage( lsa, package, &req, sizeof(req), (void **)&resp, &len, &status );
|
||||||
ok( !status, "got %08lx\n", status );
|
ok( !status, "got %08lx\n", status );
|
||||||
|
|
Loading…
Reference in a new issue