From 3d62e726485d24d67a39ffb8e168eb8bd6114110 Mon Sep 17 00:00:00 2001 From: Rich Evans Date: Tue, 3 Feb 2015 11:48:59 +0000 Subject: [PATCH] fix bug introduced by the addition of snprintf and assert macro which caused tests to fail without polarssl_platform_c defined --- tests/suites/helpers.function | 5 +++++ tests/suites/main_test.function | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/suites/helpers.function b/tests/suites/helpers.function index 3ae9a40a3..0f074859c 100644 --- a/tests/suites/helpers.function +++ b/tests/suites/helpers.function @@ -6,6 +6,10 @@ #define polarssl_fprintf fprintf #define polarssl_malloc malloc #define polarssl_free free +#define polarssl_exit exit +#define polarssl_fprintf fprintf +#define polarssl_printf printf +#define polarssl_snprintf snprintf #endif #ifdef _MSC_VER @@ -15,6 +19,7 @@ typedef UINT32 uint32_t; #include #endif +#include #include #include diff --git a/tests/suites/main_test.function b/tests/suites/main_test.function index f34688562..bb1083acf 100644 --- a/tests/suites/main_test.function +++ b/tests/suites/main_test.function @@ -1,4 +1,3 @@ -#include #include #if defined(POLARSSL_PLATFORM_C)