From 0384a5929a884f4469acd77adc062bbd8b9910cf Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Mon, 9 Mar 2026 15:39:06 +0100 Subject: [PATCH] Give test code access to internal macros of the library Signed-off-by: Gilles Peskine --- tests/include/test/macros.h | 6 ------ tests/src/test_common.h | 7 +++++++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/include/test/macros.h b/tests/include/test/macros.h index 66c8a137a..8bde989f8 100644 --- a/tests/include/test/macros.h +++ b/tests/include/test/macros.h @@ -22,12 +22,6 @@ #include "mbedtls/memory_buffer_alloc.h" #endif -#if defined(TF_PSA_CRYPTO_VERSION_NUMBER) -#include "tf_psa_crypto_common.h" -#else -#include "common.h" -#endif - /** * \brief This macro tests the expression passed to it as a test step or * individual test in a test case. diff --git a/tests/src/test_common.h b/tests/src/test_common.h index 40bdd4d65..c5cce8241 100644 --- a/tests/src/test_common.h +++ b/tests/src/test_common.h @@ -33,4 +33,11 @@ * is deemed necessary in test headers. */ #include +/* Give test code access to internal macros of the library. */ +#if defined(TF_PSA_CRYPTO_VERSION_NUMBER) +#include "tf_psa_crypto_common.h" +#else +#include "common.h" +#endif + #endif /* TEST_TEST_COMMON_H */