secur32/tests: Skip sign/seal tests if authentication fails.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Zebediah Figura 2017-01-25 22:01:51 -06:00 committed by Alexandre Julliard
parent cb0b088551
commit 38ca35166b
1 changed files with 10 additions and 0 deletions

View File

@ -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 *
********************************************/