diff --git a/TESTS/psa/attestation/main.cpp b/TESTS/psa/attestation/main.cpp index e1bc21eb75..a6a92b1f41 100755 --- a/TESTS/psa/attestation/main.cpp +++ b/TESTS/psa/attestation/main.cpp @@ -16,6 +16,10 @@ * limitations under the License. */ +#if ((!defined(TARGET_PSA)) || (!defined(MBEDTLS_PSA_CRYPTO_C))) +#error [NOT_SUPPORTED] Mbed Crypto is OFF - skipping. +#endif // TARGET_PSA + #include "greentea-client/test_env.h" #include "unity/unity.h" #include "utest/utest.h" @@ -27,10 +31,6 @@ #include "entropy.h" #include "entropy_poll.h" -#if ((!defined(TARGET_PSA)) || (!defined(MBEDTLS_PSA_CRYPTO_C))) -#error [NOT_SUPPORTED] Mbed Crypto is OFF - skipping. -#endif // TARGET_PSA - /* MAX value support macro */ #if !defined(MAX) #define MAX(a,b) (((a)>(b))?(a):(b))