Merge pull request #982 from JacobBarthelmeh/Testing

set return code to TEST_SUCCESS on successful connection
This commit is contained in:
Kaleb Himes 2017-06-20 16:21:50 -06:00 committed by GitHub
commit 97906bfdb2
1 changed files with 3 additions and 3 deletions

View File

@ -1066,17 +1066,17 @@ static THREAD_RETURN WOLFSSL_THREAD run_wolfssl_server(void* args)
#ifdef WOLFSSL_TIRTOS
Task_yield();
#endif
wolfSSL_shutdown(ssl);
((func_args*)args)->return_code = TEST_SUCCESS;
}
if (callbacks->on_result)
callbacks->on_result(ssl);
wolfSSL_shutdown(ssl);
wolfSSL_free(ssl);
wolfSSL_CTX_free(ctx);
CloseSocket(cfd);
((func_args*)args)->return_code = TEST_SUCCESS;
#ifdef WOLFSSL_TIRTOS
fdCloseSession(Task_self());
@ -1169,6 +1169,7 @@ static void run_wolfssl_client(void* args)
input[idx] = 0;
printf("Server response: %s\n", input);
}
((func_args*)args)->return_code = TEST_SUCCESS;
}
if (callbacks->on_result)
@ -1177,7 +1178,6 @@ static void run_wolfssl_client(void* args)
wolfSSL_free(ssl);
wolfSSL_CTX_free(ctx);
CloseSocket(sfd);
((func_args*)args)->return_code = TEST_SUCCESS;
#ifdef WOLFSSL_TIRTOS
fdCloseSession(Task_self());