Skip to content

Commit abf1ccc

Browse files
Alexander Zilberkantmohammad1603
authored andcommitted
Disable crypto_init tests when Mbed Crypto is OFF
1 parent 6e862cf commit abf1ccc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

TESTS/psa/crypto_init/main.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@
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"
2226
#include "crypto.h"
2327
#include "entropy.h"
2428
#include "entropy_poll.h"
2529

26-
#if (!defined(TARGET_PSA))
27-
#error [NOT_SUPPORTED] PSA entropy injection tests can run only on PSA-enabled targets.
28-
#endif // TARGET_PSA
29-
3030
#define TEST_RANDOM_SIZE 64
3131

3232
#if !defined(MAX)

0 commit comments

Comments
 (0)