mirror of
https://github.com/openssl/openssl.git
synced 2025-03-19 19:50:42 +08:00
test: fix coverity 1473609 & 1473610: unchecked return values
Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14615)
This commit is contained in:
parent
8eca93f8fb
commit
8c63532002
@ -514,8 +514,8 @@ static void test_multi_load_worker(void)
|
||||
{
|
||||
OSSL_PROVIDER *prov;
|
||||
|
||||
TEST_ptr(prov = OSSL_PROVIDER_load(NULL, "default"));
|
||||
TEST_true(OSSL_PROVIDER_unload(prov));
|
||||
(void)TEST_ptr(prov = OSSL_PROVIDER_load(NULL, "default"));
|
||||
(void)TEST_true(OSSL_PROVIDER_unload(prov));
|
||||
}
|
||||
|
||||
static int test_multi_load(void)
|
||||
@ -524,10 +524,10 @@ static int test_multi_load(void)
|
||||
int i;
|
||||
|
||||
for (i = 0; i < MULTI_LOAD_THREADS; i++)
|
||||
TEST_true(run_thread(&threads[i], test_multi_load_worker));
|
||||
(void)TEST_true(run_thread(&threads[i], test_multi_load_worker));
|
||||
|
||||
for (i = 0; i < MULTI_LOAD_THREADS; i++)
|
||||
TEST_true(wait_for_thread(threads[i]));
|
||||
(void)TEST_true(wait_for_thread(threads[i]));
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user