mbedtls/tests
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
..
.jenkins
configs
data_files Merge pull request #773 from paul-elliott-arm/discrepancy_cert 2020-12-03 12:19:39 +01:00
docker/bionic
git-scripts
include/test Don't call TEST_ASSERT in PSA_DONE 2021-01-06 20:49:42 +01:00
scripts Merge pull request #3895 from gilles-peskine-arm/psa-external-random 2021-01-06 17:09:11 +01:00
src Disable the insecure PSA test RNG by default 2021-01-06 18:21:18 +01:00
suites Don't call TEST_ASSERT in PSA_DONE 2021-01-06 20:49:42 +01:00
.gitignore
CMakeLists.txt
compat-in-docker.sh
compat.sh
context-info.sh
Descriptions.txt
make-in-docker.sh
Makefile Fix test_psa_collect_statuses: update makefile dependencies 2021-01-06 18:19:17 +01:00
ssl-opt-in-docker.sh
ssl-opt.sh