juan.lang@gmail.com: crypt32: Fix test failures on older versions of Windows

1 view
Skip to first unread message

Patchwatcher

unread,
Oct 31, 2008, 2:20:11 PM10/31/08
to wine-patch...@googlegroups.com
From: "Juan Lang" <juan...@gmail.com>
Subject: crypt32: Fix test failures on older versions of Windows
Date: Fri, 31 Oct 2008 11:03:58 -0700

--Juan

From a568550db080ca283095f12cc3f37ad97f33ff2d Mon Sep 17 00:00:00 2001
From: Juan Lang <juan...@gmail.com>
Date: Fri, 31 Oct 2008 11:03:12 -0700
Subject: [PATCH] Fix test failures on older versions of Windows

---
dlls/crypt32/tests/chain.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/dlls/crypt32/tests/chain.c b/dlls/crypt32/tests/chain.c
index 3d89512..34dfb6a 100644
--- a/dlls/crypt32/tests/chain.c
+++ b/dlls/crypt32/tests/chain.c
@@ -1824,15 +1824,23 @@ static void checkChainPolicyStatus(LPCSTR policy, const ChainPolicyCheck *check,
if (ret)
{
if (check->todo & TODO_ERROR)
- todo_wine ok(policyStatus.dwError == check->status.dwError,
+ todo_wine ok(policyStatus.dwError == check->status.dwError ||
+ broken(policyStatus.dwError == CERT_TRUST_NO_ERROR),
"%s[%d]: expected %08x, got %08x\n",
HIWORD(policy) ? policy : num_to_str(LOWORD(policy)),
testIndex, check->status.dwError, policyStatus.dwError);
else
- ok(policyStatus.dwError == check->status.dwError,
+ ok(policyStatus.dwError == check->status.dwError ||
+ broken(policyStatus.dwError == CERT_TRUST_NO_ERROR),
"%s[%d]: expected %08x, got %08x\n",
HIWORD(policy) ? policy : num_to_str(LOWORD(policy)),
testIndex, check->status.dwError, policyStatus.dwError);
+ if (policyStatus.dwError != check->status.dwError)
+ {
+ skip("error doesn't match, not checking indexes\n");
+ pCertFreeCertificateChain(chain);
+ return;
+ }
if (check->todo & TODO_CHAINS)
todo_wine ok(policyStatus.lChainIndex ==
check->status.lChainIndex, "%s[%d]: expected %d, got %d\n",
--
1.5.5.1

Reply all
Reply to author
Forward
0 new messages