mirror of https://github.com/ARMmbed/mbed-os.git
Clear ITS environment in psa entropy tests
mbed_psa_reboot_and_request_new_security_state() API replaced its_reset() which is now a secure API only This change is necessary for a clean environment for the testpull/9701/head
parent
6bb0894c47
commit
eb48d3cbeb
|
|
@ -102,6 +102,9 @@ utest::v1::status_t greentea_test_setup(const size_t number_of_cases)
|
||||||
seed[i] = i;
|
seed[i] = i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
psa_status_t status = mbed_psa_reboot_and_request_new_security_state(PSA_LIFECYCLE_ASSEMBLY_AND_TEST);
|
||||||
|
TEST_ASSERT_EQUAL(PSA_SUCCESS, status);
|
||||||
|
|
||||||
if (mbedtls_psa_inject_entropy(seed, MBEDTLS_ENTROPY_MAX_SEED_SIZE) == PSA_ERROR_NOT_SUPPORTED) {
|
if (mbedtls_psa_inject_entropy(seed, MBEDTLS_ENTROPY_MAX_SEED_SIZE) == PSA_ERROR_NOT_SUPPORTED) {
|
||||||
skip_tests = true;
|
skip_tests = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue