crypt32(1/6): use skip to avoid failures where support is missing

Juan Lang juan.lang at gmail.com
Fri Jun 29 15:08:31 CDT 2007


This series of patches should clear up some (but not all) test
failures on win9x.

--Juan
-------------- next part --------------
From 050a22f454a7b936ef7ba25bf2f248d97deb4093 Mon Sep 17 00:00:00 2001
From: Juan Lang <juanlang at juan.corp.google.com>
Date: Fri, 29 Jun 2007 12:37:08 -0700
Subject: [PATCH] Use skip to avoid failures where support is missing
---
 dlls/crypt32/tests/encode.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/dlls/crypt32/tests/encode.c b/dlls/crypt32/tests/encode.c
index af08b77..c0940d5 100644
--- a/dlls/crypt32/tests/encode.c
+++ b/dlls/crypt32/tests/encode.c
@@ -3086,6 +3086,11 @@ static void test_encodeCRLIssuingDistPoi
 
     ret = CryptEncodeObjectEx(dwEncoding, X509_ISSUING_DIST_POINT, NULL,
      CRYPT_ENCODE_ALLOC_FLAG, NULL, (BYTE *)&buf, &size);
+    if (!ret && GetLastError() == ERROR_FILE_NOT_FOUND)
+    {
+        skip("no X509_ISSUING_DIST_POINT encode support\n");
+        return;
+    }
     ok(!ret && GetLastError() == STATUS_ACCESS_VIOLATION,
      "Expected STATUS_ACCESS_VIOLATION, got %08x\n", GetLastError());
     ret = CryptEncodeObjectEx(dwEncoding, X509_ISSUING_DIST_POINT, &point,
@@ -3218,6 +3223,11 @@ static void test_decodeCRLIssuingDistPoi
     ret = CryptDecodeObjectEx(dwEncoding, X509_ISSUING_DIST_POINT,
      emptySequence, emptySequence[1] + 2, CRYPT_DECODE_ALLOC_FLAG, NULL,
      (BYTE *)&buf, &size);
+    if (!ret && GetLastError() == ERROR_FILE_NOT_FOUND)
+    {
+        skip("no X509_ISSUING_DIST_POINT decode support\n");
+        return;
+    }
     ok(ret, "CryptDecodeObjectEx failed: %08x\n", GetLastError());
     if (ret)
     {
-- 
1.4.1



More information about the wine-patches mailing list