Fix test that wasn't actually effective

psa_destroy_key() returns success even if the slot is empty.
This commit is contained in:
Manuel Pégourié-Gonnard 2018-11-22 12:21:20 +01:00 committed by Hanno Becker
parent 72d94be0de
commit e31411a814

View file

@ -169,6 +169,7 @@ void pk_psa_utils( )
/* test that freeing the context does not destroy the key */
mbedtls_pk_free( &pk );
TEST_ASSERT( PSA_SUCCESS == psa_get_key_information( key, NULL, NULL ) );
TEST_ASSERT( PSA_SUCCESS == psa_destroy_key( key ) );
exit: