Skip to content

Commit

Permalink
added return value
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbrett committed Apr 4, 2024
1 parent b63527e commit ecaf016
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/wh_test_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ static void _whClientServerThreadTest(whClientConfig* c_conf,
}
}

static void wh_ClientServer_MemThreadTest(void)
static int wh_ClientServer_MemThreadTest(void)
{
uint8_t req[BUFFER_SIZE] = {0};
uint8_t resp[BUFFER_SIZE] = {0};
Expand Down Expand Up @@ -292,6 +292,8 @@ static void wh_ClientServer_MemThreadTest(void)
wh_Nvm_Cleanup(nvm);
wc_FreeRng(crypto->rng);
wolfCrypt_Cleanup();

return WH_ERROR_OK;
}
#endif /* WH_CFG_TEST_POSIX */

Expand All @@ -300,7 +302,7 @@ int whTest_Crypto(void)
{
#if defined(WH_CFG_TEST_POSIX)
printf("Testing crypto: (pthread) mem...\n");
wh_ClientServer_MemThreadTest();
WH_TEST_RETURN_ON_FAIL(wh_ClientServer_MemThreadTest());
#endif
return 0;
}

0 comments on commit ecaf016

Please sign in to comment.