Update logs and remove unnecessary defines for Mbed TLS tests

pull/6749/head
Andrzej Kurek 2018-05-08 12:53:29 +01:00
parent 1938faa449
commit 29515c589b
2 changed files with 1 additions and 11 deletions

View File

@ -27,12 +27,7 @@
#include "mbedtls/platform.h"
#else
#include <stdio.h>
#include <stdlib.h>
#define mbedtls_printf printf
#define mbedtls_snprintf snprintf
#define mbedtls_exit exit
#define MBEDTLS_EXIT_SUCCESS EXIT_SUCCESS
#define MBEDTLS_EXIT_FAILURE EXIT_FAILURE
#endif
using namespace utest::v1;
@ -179,7 +174,7 @@ int main() {
mbedtls_platform_context platform_ctx;
if((ret = mbedtls_platform_setup(&platform_ctx))!= 0)
{
mbedtls_printf("Mbed TLS selftest failed! mbedtls_platform_setup returned %d\n", ret);
mbedtls_printf("Mbed TLS multitest failed! mbedtls_platform_setup returned %d\n", ret);
return 1;
}
#endif

View File

@ -39,12 +39,7 @@ using namespace utest::v1;
#include "mbedtls/platform.h"
#else
#include <stdio.h>
#include <stdlib.h>
#define mbedtls_printf printf
#define mbedtls_snprintf snprintf
#define mbedtls_exit exit
#define MBEDTLS_EXIT_SUCCESS EXIT_SUCCESS
#define MBEDTLS_EXIT_FAILURE EXIT_FAILURE
#endif
#define MBEDTLS_SELF_TEST_TEST_CASE(self_test_function) \