test_suite_cipher: use TEST_ASSUME() to evaluate supported ciphers
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
parent
5cd18f9150
commit
9d9b4b547f
1 changed files with 1 additions and 3 deletions
|
@ -183,9 +183,7 @@ void cipher_invalid_param_unconditional()
|
|||
mbedtls_cipher_init(&invalid_ctx);
|
||||
|
||||
/* Ensure that there is at least 1 supported cipher, otherwise exit gracefully */
|
||||
if (*cipher_list == 0) {
|
||||
goto exit;
|
||||
}
|
||||
TEST_ASSUME(*cipher_list != 0);
|
||||
valid_info = mbedtls_cipher_info_from_type(*cipher_list);
|
||||
|
||||
TEST_ASSERT(mbedtls_cipher_setup(&valid_ctx, valid_info) == 0);
|
||||
|
|
Loading…
Reference in a new issue