wolfCrypt cleanup in test.c moved and add wolfSSL init to testsuite with single threaded

This commit is contained in:
Jacob Barthelmeh
2017-02-08 18:52:16 -07:00
parent ef38ab8fc5
commit 6a6e61f1d8
3 changed files with 9 additions and 7 deletions

View File

@@ -405,11 +405,13 @@ int main(int argc, char** argv)
server_args.argc = argc;
server_args.argv = argv;
wolfSSL_Init();
ChangeToWolfRoot();
wolfcrypt_test(&server_args);
if (server_args.return_code != 0) return server_args.return_code;
wolfSSL_Cleanup();
printf("\nAll tests passed!\n");
EXIT_TEST(EXIT_SUCCESS);