Skip to content

Commit

Permalink
Fix up typos in test file
Browse files Browse the repository at this point in the history
Signed-off-by: Steven Cooreman <[email protected]>
  • Loading branch information
stevew817 committed Jun 2, 2020
1 parent 7c244e5 commit 059c721
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/suites/test_suite_psa_crypto_se_driver_hal.function
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
( PSA_KEY_LIFETIME_FROM_PERSISTENCE_AND_LOCATION( \
PSA_KEY_PERSISTENCE_DEFAULT, TEST_DRIVER_LOCATION ) )

#define TEST_SE_VOLAITLE_LIFETIME \
#define TEST_SE_VOLATILE_LIFETIME \
( PSA_KEY_LIFETIME_FROM_PERSISTENCE_AND_LOCATION( \
PSA_KEY_PERSISTENCE_VOLATILE, TEST_DRIVER_LOCATION ) )

Expand Down Expand Up @@ -895,10 +895,12 @@ void key_creation_import_export( int lifetime_arg, int min_slot, int restart )
else
{
/* For volatile keys, check no persistent data was created */
if( ! check_no_persistent_data( location ) ) )
if( ! check_no_persistent_data( location ) )
goto exit;
}

/* Test that the key was created in the expected slot. */
TEST_ASSERT( ram_slots[min_slot].type == PSA_KEY_TYPE_RAW_DATA );

/* Maybe restart, to check that the information is saved correctly. */
if( restart )
Expand All @@ -914,6 +916,7 @@ void key_creation_import_export( int lifetime_arg, int min_slot, int restart )

/* Drop data from our mockup driver */
ram_slots_reset();
ram_min_slot = min_slot;

/* Re-import key */
PSA_ASSERT( psa_import_key( &attributes,
Expand Down

0 comments on commit 059c721

Please sign in to comment.