Commit b9c122f1 authored by Alexander Morozov's avatar Alexander Morozov Committed by Alexandre Julliard

crypt32/tests: Skip more tests.

parent 387ed3c8
...@@ -2078,7 +2078,6 @@ static void test_enveloped_msg_open(void) ...@@ -2078,7 +2078,6 @@ static void test_enveloped_msg_open(void)
"expected E_INVALIDARG, got %08x\n", GetLastError()); "expected E_INVALIDARG, got %08x\n", GetLastError());
} }
SetLastError(0xdeadbeef);
context = CertCreateCertificateContext(X509_ASN_ENCODING, context = CertCreateCertificateContext(X509_ASN_ENCODING,
v1CertWithValidPubKey, sizeof(v1CertWithValidPubKey)); v1CertWithValidPubKey, sizeof(v1CertWithValidPubKey));
if (context) if (context)
...@@ -2090,10 +2089,6 @@ static void test_enveloped_msg_open(void) ...@@ -2090,10 +2089,6 @@ static void test_enveloped_msg_open(void)
todo_wine todo_wine
ok(msg != NULL, "CryptMsgOpenToEncode failed: %08x\n", GetLastError()); ok(msg != NULL, "CryptMsgOpenToEncode failed: %08x\n", GetLastError());
CryptMsgClose(msg); CryptMsgClose(msg);
}
else
win_skip("failed to create certificate context, skipping a test\n");
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
ret = pCryptAcquireContextA(&envelopedInfo.hCryptProv, NULL, NULL, ret = pCryptAcquireContextA(&envelopedInfo.hCryptProv, NULL, NULL,
PROV_RSA_FULL, CRYPT_VERIFYCONTEXT); PROV_RSA_FULL, CRYPT_VERIFYCONTEXT);
...@@ -2104,9 +2099,11 @@ static void test_enveloped_msg_open(void) ...@@ -2104,9 +2099,11 @@ static void test_enveloped_msg_open(void)
todo_wine todo_wine
ok(msg != NULL, "CryptMsgOpenToEncode failed: %08x\n", GetLastError()); ok(msg != NULL, "CryptMsgOpenToEncode failed: %08x\n", GetLastError());
CryptMsgClose(msg); CryptMsgClose(msg);
CryptReleaseContext(envelopedInfo.hCryptProv, 0); CryptReleaseContext(envelopedInfo.hCryptProv, 0);
CertFreeCertificateContext(context); CertFreeCertificateContext(context);
}
else
win_skip("failed to create certificate context, skipping tests\n");
} }
static void test_enveloped_msg_update(void) static void test_enveloped_msg_update(void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment