Piotr Caban : crypt32/tests: Fix tests skipped on all test bot machines.

Alexandre Julliard julliard at winehq.org
Thu Apr 15 16:57:45 CDT 2021


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

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Thu Apr 15 17:25:10 2021 +0200

crypt32/tests: Fix tests skipped on all test bot machines.

Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/crypt32/tests/chain.c | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/dlls/crypt32/tests/chain.c b/dlls/crypt32/tests/chain.c
index 26a1a16dc82..e8c8843a321 100644
--- a/dlls/crypt32/tests/chain.c
+++ b/dlls/crypt32/tests/chain.c
@@ -4741,17 +4741,17 @@ static const CERT_CHAIN_POLICY_STATUS badDateNestingStatus =
 
 static const ChainPolicyCheck ignoredBadDateNestingBasePolicyCheck = {
  { ARRAY_SIZE(chain2), chain2 },
- { 0, CERT_E_EXPIRED, 0, 1, NULL}, &badDateNestingStatus, TODO_ELEMENTS
+ { 0, 0, -1, -1, NULL}, NULL, TODO_ERROR
 };
 
 static const ChainPolicyCheck ignoredInvalidDateBasePolicyCheck = {
  { ARRAY_SIZE(googleChain), googleChain },
- { 0, CERT_E_EXPIRED, 0, 1, NULL}, &badDateNestingStatus, TODO_ELEMENTS
+ { 0, 0, -1, -1, NULL}, NULL, TODO_ERROR
 };
 
 static const ChainPolicyCheck ignoredInvalidUsageBasePolicyCheck = {
  { ARRAY_SIZE(chain15), chain15 },
- { 0, CERT_E_EXPIRED, 0, 1, NULL}, NULL, TODO_ERROR
+ { 0, 0, -1, -1, NULL}, NULL, 0
 };
 
 static const ChainPolicyCheck invalidUsageBasePolicyCheck = {
@@ -4812,13 +4812,9 @@ static const ChainPolicyCheck googlePolicyCheckWithMatchingNameExpired = {
  { 0, CERT_E_EXPIRED, 0, 0, NULL}, NULL, 0
 };
 
-/* Win98 sees the chain as expired, even though it isn't for the date tested */
-static const CERT_CHAIN_POLICY_STATUS expiredStatus =
- { 0, CERT_E_EXPIRED, 0, 0, NULL };
-
 static const ChainPolicyCheck googlePolicyCheckWithMatchingName = {
  { ARRAY_SIZE(googleChain), googleChain },
- { 0, 0, -1, -1, NULL}, &expiredStatus, 0
+ { 0, 0, -1, -1, NULL}, NULL, 0
 };
 
 /* Win98 does not trust the root of the OpenSSL chain or the Stanford chain */




More information about the wine-cvs mailing list