mirror of
https://github.com/espressif/mbedtls.git
synced 2026-08-30 15:09:56 +00:00
Stop IOP generate key complete test in case expected value is not success
Signed-off-by: Waleed Elmelegy <[email protected]>
This commit is contained in:
@@ -10158,6 +10158,10 @@ void generate_key(int type_arg,
|
||||
status = psa_generate_key_iop_setup(&operation, &attributes);
|
||||
TEST_EQUAL(status, expected_status);
|
||||
|
||||
if (expected_status != PSA_SUCCESS) {
|
||||
goto exit;
|
||||
}
|
||||
|
||||
do {
|
||||
status = psa_generate_key_iop_complete(&operation, &iop_key);
|
||||
} while (status == PSA_OPERATION_INCOMPLETE);
|
||||
|
||||
Reference in New Issue
Block a user