From e12f5eeaa728939f088734aa0038632b55d4a893 Mon Sep 17 00:00:00 2001 From: Moran Peker Date: Wed, 20 Feb 2019 12:15:27 +0200 Subject: [PATCH] Add ifdef TARGET_PSA and MBEDTLS_PSA_CRYPTO_C to test file if not supported return error --- TESTS/psa/attestation/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/TESTS/psa/attestation/main.cpp b/TESTS/psa/attestation/main.cpp index 7bf382624c..b3265d79fc 100755 --- a/TESTS/psa/attestation/main.cpp +++ b/TESTS/psa/attestation/main.cpp @@ -26,6 +26,11 @@ #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))