From dbdd168e46cb4bde13ac63191676265068a36f1e Mon Sep 17 00:00:00 2001 From: John Lindgren Date: Fri, 25 Aug 2017 15:47:40 -0400 Subject: [PATCH] Fix test link error. --- test/tests/testunity.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/tests/testunity.c b/test/tests/testunity.c index bec2a81..55a9b5d 100644 --- a/test/tests/testunity.c +++ b/test/tests/testunity.c @@ -4142,9 +4142,13 @@ static void printFloatValue(float f) TEST_ASSERT_EQUAL_PRINT_FLOATING(expected, f); } } +#endif void testFloatPrintingRandomSamples(void) { +#if !defined(UNITY_TEST_ALL_FLOATS_PRINT_OK) || !defined(USING_OUTPUT_SPY) + TEST_IGNORE(); +#else union { float f_value; uint32_t int_value; } u; /* These values are not covered by the MINSTD generator */ @@ -4163,8 +4167,8 @@ void testFloatPrintingRandomSamples(void) u.int_value = a; printFloatValue(u.f_value); u.int_value = a | 0x80000000; printFloatValue(u.f_value); } -} #endif +} // ===================== THESE TEST WILL RUN IF YOUR CONFIG INCLUDES DOUBLE SUPPORT ==================