Juan Lang : crypt32/tests: Fix test failures on older NT4.

Alexandre Julliard julliard at winehq.org
Mon Feb 13 13:43:25 CST 2012


Module: wine
Branch: master
Commit: ad46dbd4cc866592aab8ab84f34ccf98762ac995
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ad46dbd4cc866592aab8ab84f34ccf98762ac995

Author: Juan Lang <juan.lang at gmail.com>
Date:   Sun Feb 12 17:51:23 2012 -0800

crypt32/tests: Fix test failures on older NT4.

---

 dlls/crypt32/tests/cert.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/dlls/crypt32/tests/cert.c b/dlls/crypt32/tests/cert.c
index 759b0da..9678053 100644
--- a/dlls/crypt32/tests/cert.c
+++ b/dlls/crypt32/tests/cert.c
@@ -3321,6 +3321,11 @@ static void testVerifyRevocation(void)
     SetLastError(0xdeadbeef);
     ret = CertVerifyRevocation(X509_ASN_ENCODING, CERT_CONTEXT_REVOCATION_TYPE,
      1, (void **)certs, 0, NULL, &status);
+    if (!ret && GetLastError() == ERROR_FILE_NOT_FOUND)
+    {
+        win_skip("CERT_CONTEXT_REVOCATION_TYPE unsupported, skipping\n");
+        return;
+    }
     ok(!ret && GetLastError() == CRYPT_E_NO_REVOCATION_CHECK,
      "expected CRYPT_E_NO_REVOCATION_CHECK, got %08x\n", GetLastError());
     ok(status.dwError == CRYPT_E_NO_REVOCATION_CHECK,




More information about the wine-cvs mailing list