From 55abc215219ace39bc9c882a50ecd933bfc46663 Mon Sep 17 00:00:00 2001 From: Janos Follath Date: Mon, 18 Apr 2016 18:18:48 +0100 Subject: [PATCH] Fix ci break in builds without platform.h --- tests/suites/helpers.function | 2 ++ tests/suites/main_test.function | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/suites/helpers.function b/tests/suites/helpers.function index 2eff043fd..6d4438de5 100644 --- a/tests/suites/helpers.function +++ b/tests/suites/helpers.function @@ -13,6 +13,8 @@ #define mbedtls_fprintf fprintf #define mbedtls_printf printf #define mbedtls_snprintf snprintf +#define MBEDTLS_EXIT_SUCCESS EXIT_SUCCESS +#define MBEDTLS_EXIT_FAILURE EXIT_FAILURE #endif #if defined(MBEDTLS_MEMORY_BUFFER_ALLOC_C) diff --git a/tests/suites/main_test.function b/tests/suites/main_test.function index 525df5b24..c2e3f6b07 100644 --- a/tests/suites/main_test.function +++ b/tests/suites/main_test.function @@ -356,7 +356,7 @@ int main(int argc, const char *argv[]) if( unmet_dependencies[ i-1 ] == NULL ) { mbedtls_printf("FATAL: Out of memory\n"); - mbedtls_exit( MBEDTLS_PLATFORM_STD_EXIT_FAILURE ); + mbedtls_exit( MBEDTLS_EXIT_FAILURE ); } unmet_dep_count++; }