[PATCH] secur32/tests: Skip sign/seal tests if authentication fails.

Zebediah Figura z.figura12 at gmail.com
Wed Jan 25 22:01:51 CST 2017


Fixes https://bugs.winehq.org/show_bug.cgi?id=42220

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 dlls/secur32/tests/ntlm.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/dlls/secur32/tests/ntlm.c b/dlls/secur32/tests/ntlm.c
index 3b661c1..d90b725 100644
--- a/dlls/secur32/tests/ntlm.c
+++ b/dlls/secur32/tests/ntlm.c
@@ -971,6 +971,10 @@ static void testSignSeal(void)
     {
         client_stat = runClient(&client, first, SECURITY_NETWORK_DREP);
 
+        ok(client_stat == SEC_E_OK || client_stat == SEC_I_CONTINUE_NEEDED,
+                "Running the client returned %s, more tests will fail.\n",
+                getSecError(client_stat));
+
         communicate(&client, &server);
 
         server_stat = runFakeServer(&server, first, SECURITY_NETWORK_DREP);
@@ -980,6 +984,12 @@ static void testSignSeal(void)
         first = FALSE;
     }
 
+    if(client_stat != SEC_E_OK)
+    {
+	skip("Authentication failed, skipping test.\n");
+	goto end;
+    }
+
     /********************************************
      *    Now start with the actual testing     *
      ********************************************/
-- 
2.7.4




More information about the wine-patches mailing list