Zebediah Figura : secur32/tests: Skip sign/ seal tests if authentication fails.
Alexandre Julliard
julliard at winehq.org
Thu Feb 2 15:49:26 CST 2017
Module: wine
Branch: master
Commit: 38ca35166be379f1846436a392da68603dc8c81d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=38ca35166be379f1846436a392da68603dc8c81d
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Wed Jan 25 22:01:51 2017 -0600
secur32/tests: Skip sign/seal tests if authentication fails.
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 *
********************************************/
More information about the wine-cvs
mailing list