tests: arm_thread_swap_tz: Explicitly set the TFM_PROFILE

to NOT_SET, in case the default is changed.

Add print of failing error code for psa_hash_compute().

Signed-off-by: Øyvind Rønningstad <oyvind.ronningstad@nordicsemi.no>
This commit is contained in:
Øyvind Rønningstad 2022-05-31 15:40:45 +02:00 committed by Carles Cufí
commit 920028e03b
2 changed files with 2 additions and 1 deletions

View file

@ -10,3 +10,4 @@ CONFIG_BUILD_WITH_TFM=y
CONFIG_TFM_IPC=y
CONFIG_FPU=y
CONFIG_FPU_SHARING=y
CONFIG_TFM_PROFILE_TYPE_NOT_SET=y # Needed for SHA512 functionality

View file

@ -30,7 +30,7 @@ static void do_hash(char *hash)
psa_status_t status = psa_hash_compute(PSA_ALG_SHA_512, dummy_string,
sizeof(dummy_string), hash, HASH_LEN, &len);
zassert_equal(PSA_SUCCESS, status, "psa_hash_compute_fail\n");
zassert_equal(PSA_SUCCESS, status, "psa_hash_compute_fail: %d\n", status);
zassert_equal(HASH_LEN, len, "hash length not correct\n");
}