Skip to content

Commit 1431e21

Browse files
author
itayzafrir
committed
Skip Mbed Crypto tests when when Mbed Crypto is OFF
1 parent 3e88dcf commit 1431e21

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

TESTS/mbed-crypto/sanity/main.cpp

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

18+
#if ((!defined(TARGET_PSA)) || (!defined(MBEDTLS_PSA_CRYPTO_C)))
19+
#error [NOT_SUPPORTED] Mbed Crypto is OFF - skipping.
20+
#endif
21+
1822
#include <stdio.h>
1923
#include "mbed.h"
2024
#include "greentea-client/test_env.h"

0 commit comments

Comments
 (0)