Juan Lang : crypt32: Use broken() to mark an expected result from a broken version of crypt32.

Alexandre Julliard julliard at winehq.org
Fri Nov 13 09:37:04 CST 2009


Module: wine
Branch: master
Commit: d311cc9bdb71b21d339336668b11825fd6723ac0
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d311cc9bdb71b21d339336668b11825fd6723ac0

Author: Juan Lang <juan.lang at gmail.com>
Date:   Thu Nov 12 10:35:12 2009 -0800

crypt32: Use broken() to mark an expected result from a broken version of crypt32.

---

 dlls/crypt32/tests/chain.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/dlls/crypt32/tests/chain.c b/dlls/crypt32/tests/chain.c
index 57fe2b0..b9ffec9 100644
--- a/dlls/crypt32/tests/chain.c
+++ b/dlls/crypt32/tests/chain.c
@@ -3230,6 +3230,12 @@ static void testGetCertChain(void)
      chainCheckEmbeddedNull.todo, 0);
     if (chain)
     {
+        ok(chain->TrustStatus.dwErrorStatus ==
+         chainCheckEmbeddedNull.status.status.dwErrorStatus ||
+         broken(chain->TrustStatus.dwErrorStatus ==
+         chainCheckEmbeddedNullBroken.status.status.dwErrorStatus),
+         "unexpected chain error status %08x\n",
+         chain->TrustStatus.dwErrorStatus);
         if (chainCheckEmbeddedNull.status.status.dwErrorStatus ==
          chain->TrustStatus.dwErrorStatus)
             checkChainStatus(chain, &chainCheckEmbeddedNull.status,




More information about the wine-cvs mailing list