Skip to content

Commit e819b23

Browse files
author
Moran Peker
committed
Fix attestation main to check PSA target before includes
1 parent 7dd58b9 commit e819b23

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

TESTS/psa/attestation/main.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
* limitations under the License.
1717
*/
1818

19+
#if ((!defined(TARGET_PSA)) || (!defined(MBEDTLS_PSA_CRYPTO_C)))
20+
#error [NOT_SUPPORTED] Mbed Crypto is OFF - skipping.
21+
#endif // TARGET_PSA
22+
1923
#include "greentea-client/test_env.h"
2024
#include "unity/unity.h"
2125
#include "utest/utest.h"
@@ -27,10 +31,6 @@
2731
#include "entropy.h"
2832
#include "entropy_poll.h"
2933

30-
#if ((!defined(TARGET_PSA)) || (!defined(MBEDTLS_PSA_CRYPTO_C)))
31-
#error [NOT_SUPPORTED] Mbed Crypto is OFF - skipping.
32-
#endif // TARGET_PSA
33-
3434
/* MAX value support macro */
3535
#if !defined(MAX)
3636
#define MAX(a,b) (((a)>(b))?(a):(b))

0 commit comments

Comments
 (0)