mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-16 08:42:50 +00:00
Stop IOP generate key complete test in case expected value is not success
Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
This commit is contained in:
parent
5d4de3582e
commit
bd36c4746a
@ -10158,6 +10158,10 @@ void generate_key(int type_arg,
|
|||||||
status = psa_generate_key_iop_setup(&operation, &attributes);
|
status = psa_generate_key_iop_setup(&operation, &attributes);
|
||||||
TEST_EQUAL(status, expected_status);
|
TEST_EQUAL(status, expected_status);
|
||||||
|
|
||||||
|
if (expected_status != PSA_SUCCESS) {
|
||||||
|
goto exit;
|
||||||
|
}
|
||||||
|
|
||||||
do {
|
do {
|
||||||
status = psa_generate_key_iop_complete(&operation, &iop_key);
|
status = psa_generate_key_iop_complete(&operation, &iop_key);
|
||||||
} while (status == PSA_OPERATION_INCOMPLETE);
|
} while (status == PSA_OPERATION_INCOMPLETE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user