Disable crypto_init tests when Mbed Crypto is OFF

pull/8804/head
Alexander Zilberkant 2018-11-27 10:45:32 +02:00 committed by mohammad1603
parent 6e862cf112
commit abf1ccc722
1 changed files with 4 additions and 4 deletions

View File

@ -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"
@ -23,10 +27,6 @@
#include "entropy.h"
#include "entropy_poll.h"
#if (!defined(TARGET_PSA))
#error [NOT_SUPPORTED] PSA entropy injection tests can run only on PSA-enabled targets.
#endif // TARGET_PSA
#define TEST_RANDOM_SIZE 64
#if !defined(MAX)