crypt32/tests: Mark win8 behaviour as broken (resend)

André Hentschel nerv at dawncrow.de
Mon Nov 26 18:20:26 CST 2012


---
 dlls/crypt32/tests/chain.c | 6 ++++--
 1 file 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.8.0



-- 

Best Regards, André Hentschel


More information about the wine-patches mailing list