Module: wine Branch: master Commit: 19e63d11ceaeb1c2bd07ffe41ba8b64fb2a0598e URL: http://source.winehq.org/git/wine.git/?a=commit;h=19e63d11ceaeb1c2bd07ffe41b...
Author: Paul Vriens Paul.Vriens.Wine@gmail.com Date: Wed Dec 16 14:00:01 2009 +0100
cryptnet/tests: Fix some test failures on W2K with just SP3 or SP4.
---
dlls/cryptnet/tests/cryptnet.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/dlls/cryptnet/tests/cryptnet.c b/dlls/cryptnet/tests/cryptnet.c index 83060b6..1cdafa4 100644 --- a/dlls/cryptnet/tests/cryptnet.c +++ b/dlls/cryptnet/tests/cryptnet.c @@ -670,9 +670,12 @@ static void test_verifyRevocation(void) revPara.pftTimeToUse = &time; ret = pCertVerifyRevocation(X509_ASN_ENCODING, CERT_CONTEXT_REVOCATION_TYPE, 1, (void **)&certs[1], 0, &revPara, &status); - ok(!ret && GetLastError() == CRYPT_E_NO_REVOCATION_CHECK, + ok(!ret, "Expected failure\n"); + ok(GetLastError() == CRYPT_E_NO_REVOCATION_CHECK || + broken(GetLastError() == CRYPT_E_REVOKED), /* W2K SP3/SP4 */ "expected CRYPT_E_NO_REVOCATION_CHECK, got %08x\n", GetLastError()); - ok(status.dwError == CRYPT_E_NO_REVOCATION_CHECK, + ok(status.dwError == CRYPT_E_NO_REVOCATION_CHECK || + broken(GetLastError() == CRYPT_E_REVOKED), /* W2K SP3/SP4 */ "expected CRYPT_E_NO_REVOCATION_CHECK, got %08x\n", status.dwError); ok(status.dwIndex == 0, "expected index 0, got %d\n", status.dwIndex); CertCloseStore(revPara.hCrlStore, 0);