tests: Fix persistent slot lifecycle tests
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
parent
4184107d2e
commit
e4f6d5c5fe
1 changed files with 0 additions and 6 deletions
|
@ -251,12 +251,6 @@ void persistent_slot_lifecycle( int lifetime_arg, int owner_id_arg, int id_arg,
|
||||||
if( ! invalidate_psa( close_method ) )
|
if( ! invalidate_psa( close_method ) )
|
||||||
goto exit;
|
goto exit;
|
||||||
|
|
||||||
/* Test that the handle is now invalid. */
|
|
||||||
TEST_EQUAL( psa_get_key_attributes( handle, &read_attributes ),
|
|
||||||
PSA_ERROR_DOES_NOT_EXIST );
|
|
||||||
psa_reset_key_attributes( &read_attributes );
|
|
||||||
TEST_EQUAL( psa_close_key( handle ), PSA_ERROR_DOES_NOT_EXIST );
|
|
||||||
|
|
||||||
/* Try to reopen the key. If we destroyed it, check that it doesn't
|
/* Try to reopen the key. If we destroyed it, check that it doesn't
|
||||||
* exist. Otherwise check that it still exists and has the expected
|
* exist. Otherwise check that it still exists and has the expected
|
||||||
* content. */
|
* content. */
|
||||||
|
|
Loading…
Reference in a new issue