Juan Lang : crypt32: Use skip to avoid failures where support is
missing.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jul 2 09:52:06 CDT 2007
Module: wine
Branch: master
Commit: 68b052057b28f86314538478d0f9834800faaf41
URL: http://source.winehq.org/git/wine.git/?a=commit;h=68b052057b28f86314538478d0f9834800faaf41
Author: Juan Lang <juan.lang at gmail.com>
Date: Fri Jun 29 12:37:08 2007 -0700
crypt32: 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_encodeCRLIssuingDistPoint(DWORD dwEncoding)
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_decodeCRLIssuingDistPoint(DWORD dwEncoding)
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)
{
More information about the wine-cvs
mailing list