forked from wolfSSL/wolfssl
fixed unit test intermittent failure
This commit is contained in:
@ -4291,9 +4291,9 @@ static void test_wolfSSL_CTX_verifyDepth_ServerClient(void)
|
|||||||
client_args.argc = 2;
|
client_args.argc = 2;
|
||||||
|
|
||||||
test_client_verifyDepth(&client_args);
|
test_client_verifyDepth(&client_args);
|
||||||
|
join_thread(serverThread);
|
||||||
AssertIntEQ(client_args.return_code, TEST_SUCCESS);
|
AssertIntEQ(client_args.return_code, TEST_SUCCESS);
|
||||||
AssertIntEQ(server_args.return_code, TEST_SUCCESS);
|
AssertIntEQ(server_args.return_code, TEST_SUCCESS);
|
||||||
join_thread(serverThread);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* test case 2
|
/* test case 2
|
||||||
@ -4309,9 +4309,9 @@ static void test_wolfSSL_CTX_verifyDepth_ServerClient(void)
|
|||||||
|
|
||||||
client_args.argc = 0;
|
client_args.argc = 0;
|
||||||
test_client_verifyDepth(&client_args);
|
test_client_verifyDepth(&client_args);
|
||||||
|
join_thread(serverThread);
|
||||||
AssertIntEQ(client_args.return_code, TEST_SUCCESS);
|
AssertIntEQ(client_args.return_code, TEST_SUCCESS);
|
||||||
AssertIntEQ(server_args.return_code, TEST_SUCCESS);
|
AssertIntEQ(server_args.return_code, TEST_SUCCESS);
|
||||||
join_thread(serverThread);
|
|
||||||
}
|
}
|
||||||
/* test case 3
|
/* test case 3
|
||||||
* verify depth is zero, number of peer's chain is 2
|
* verify depth is zero, number of peer's chain is 2
|
||||||
@ -4325,9 +4325,9 @@ static void test_wolfSSL_CTX_verifyDepth_ServerClient(void)
|
|||||||
|
|
||||||
client_args.argc = -1;
|
client_args.argc = -1;
|
||||||
test_client_verifyDepth(&client_args);
|
test_client_verifyDepth(&client_args);
|
||||||
|
join_thread(serverThread);
|
||||||
AssertIntEQ(client_args.return_code, TEST_FAIL);
|
AssertIntEQ(client_args.return_code, TEST_FAIL);
|
||||||
AssertIntEQ(server_args.return_code, TEST_FAIL);
|
AssertIntEQ(server_args.return_code, TEST_FAIL);
|
||||||
join_thread(serverThread);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
FreeTcpReady(&ready);
|
FreeTcpReady(&ready);
|
||||||
|
Reference in New Issue
Block a user