mbedtls/tests/include/test
Gilles Peskine c85c20147b Don't call TEST_ASSERT in PSA_DONE
TEST_ASSERT jumps to the exit label, so it must not be called from
cleanup code executed after the exit label. It's legitimate (and
indeed very common) to call PSA_DONE in cleanup code, so PSA_DONE must
not jump to exit.

Define an auxiliary function test_fail_if_psa_leaking() that calls
test_fail() with the error message provided by
mbedtls_test_helper_is_psa_leaking(). This function currently needs to
be in helpers.function rather than in a PSA-specific helper file
because it calls test_fail which is defined in helpers.function.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2021-01-06 20:49:42 +01:00
..
drivers Plug in the entry point for public key export through driver 2020-11-20 17:31:24 +01:00
constant_flow.h Merge pull request #736 from mpg/cf-varpos-copy-dev-restricted 2020-08-25 14:35:55 +01:00
helpers.h Merge pull request #3474 from ronald-cron-arm/common-mbedtls_param_failed 2020-10-06 22:15:42 +02:00
macros.h Merge pull request #3574 from makise-homura/e2k_support 2020-08-25 09:46:36 +02:00
psa_crypto_helpers.h Don't call TEST_ASSERT in PSA_DONE 2021-01-06 20:49:42 +01:00
psa_helpers.h Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
random.h Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00