Alexander Morozov : crypt32/tests: Skip more tests.
Alexandre Julliard
julliard at winehq.org
Thu Nov 25 11:18:57 CST 2010
Module: wine
Branch: master
Commit: b9c122f15e3aea9c481815a12b207711275b54a7
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b9c122f15e3aea9c481815a12b207711275b54a7
Author: Alexander Morozov <amorozov at etersoft.ru>
Date: Thu Nov 25 01:06:32 2010 +0300
crypt32/tests: Skip more tests.
---
dlls/crypt32/tests/msg.c | 29 +++++++++++++----------------
1 files changed, 13 insertions(+), 16 deletions(-)
diff --git a/dlls/crypt32/tests/msg.c b/dlls/crypt32/tests/msg.c
index 898b10c..d8b1b94 100644
--- a/dlls/crypt32/tests/msg.c
+++ b/dlls/crypt32/tests/msg.c
@@ -2078,7 +2078,6 @@ static void test_enveloped_msg_open(void)
"expected E_INVALIDARG, got %08x\n", GetLastError());
}
- SetLastError(0xdeadbeef);
context = CertCreateCertificateContext(X509_ASN_ENCODING,
v1CertWithValidPubKey, sizeof(v1CertWithValidPubKey));
if (context)
@@ -2090,23 +2089,21 @@ static void test_enveloped_msg_open(void)
todo_wine
ok(msg != NULL, "CryptMsgOpenToEncode failed: %08x\n", GetLastError());
CryptMsgClose(msg);
+ SetLastError(0xdeadbeef);
+ ret = pCryptAcquireContextA(&envelopedInfo.hCryptProv, NULL, NULL,
+ PROV_RSA_FULL, CRYPT_VERIFYCONTEXT);
+ ok(ret, "CryptAcquireContextA failed: %08x\n", GetLastError());
+ SetLastError(0xdeadbeef);
+ msg = CryptMsgOpenToEncode(PKCS_7_ASN_ENCODING, 0, CMSG_ENVELOPED,
+ &envelopedInfo, NULL, NULL);
+ todo_wine
+ ok(msg != NULL, "CryptMsgOpenToEncode failed: %08x\n", GetLastError());
+ CryptMsgClose(msg);
+ CryptReleaseContext(envelopedInfo.hCryptProv, 0);
+ CertFreeCertificateContext(context);
}
else
- win_skip("failed to create certificate context, skipping a test\n");
-
- SetLastError(0xdeadbeef);
- ret = pCryptAcquireContextA(&envelopedInfo.hCryptProv, NULL, NULL,
- PROV_RSA_FULL, CRYPT_VERIFYCONTEXT);
- ok(ret, "CryptAcquireContextA failed: %08x\n", GetLastError());
- SetLastError(0xdeadbeef);
- msg = CryptMsgOpenToEncode(PKCS_7_ASN_ENCODING, 0, CMSG_ENVELOPED,
- &envelopedInfo, NULL, NULL);
- todo_wine
- ok(msg != NULL, "CryptMsgOpenToEncode failed: %08x\n", GetLastError());
- CryptMsgClose(msg);
-
- CryptReleaseContext(envelopedInfo.hCryptProv, 0);
- CertFreeCertificateContext(context);
+ win_skip("failed to create certificate context, skipping tests\n");
}
static void test_enveloped_msg_update(void)
More information about the wine-cvs
mailing list