crypt32/tests: Mark win8 behavior as broken
André Hentschel
nerv at dawncrow.de
Mon Sep 24 17:49:05 CDT 2012
---
dlls/crypt32/tests/chain.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/crypt32/tests/chain.c b/dlls/crypt32/tests/chain.c
index 2e4da55..71f5db0 100644
--- a/dlls/crypt32/tests/chain.c
+++ b/dlls/crypt32/tests/chain.c
@@ -4626,7 +4626,8 @@ static void testVerifyCertChainPolicy(void)
ret = pCertVerifyCertificateChainPolicy(CERT_CHAIN_POLICY_BASE, chain, NULL,
&policyStatus);
ok(ret, "CertVerifyCertificateChainPolicy failed: %08x\n", GetLastError());
- ok(policyStatus.dwError == CERT_E_UNTRUSTEDROOT,
+ ok(policyStatus.dwError == CERT_E_UNTRUSTEDROOT ||
+ broken(policyStatus.dwError == TRUST_E_CERT_SIGNATURE /* win8 */),
"Expected CERT_E_UNTRUSTEDROOT, got %08x\n", policyStatus.dwError);
ok(policyStatus.lChainIndex == 0 && policyStatus.lElementIndex == 0,
"Expected both indexes 0, got %d, %d\n", policyStatus.lChainIndex,
@@ -4634,7 +4635,8 @@ static void testVerifyCertChainPolicy(void)
ret = pCertVerifyCertificateChainPolicy(CERT_CHAIN_POLICY_BASE, chain,
&policyPara, &policyStatus);
ok(ret, "CertVerifyCertificateChainPolicy failed: %08x\n", GetLastError());
- ok(policyStatus.dwError == CERT_E_UNTRUSTEDROOT,
+ ok(policyStatus.dwError == CERT_E_UNTRUSTEDROOT ||
+ broken(policyStatus.dwError == TRUST_E_CERT_SIGNATURE /* win8 */),
"Expected CERT_E_UNTRUSTEDROOT, got %08x\n", policyStatus.dwError);
ok(policyStatus.lChainIndex == 0 && policyStatus.lElementIndex == 0,
"Expected both indexes 0, got %d, %d\n", policyStatus.lChainIndex,
--
1.7.4.1
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list