提交 dbdd168e 编写于 作者: J John Lindgren

Fix test link error.

上级 0e7eb545
...@@ -4142,9 +4142,13 @@ static void printFloatValue(float f) ...@@ -4142,9 +4142,13 @@ static void printFloatValue(float f)
TEST_ASSERT_EQUAL_PRINT_FLOATING(expected, f); TEST_ASSERT_EQUAL_PRINT_FLOATING(expected, f);
} }
} }
#endif
void testFloatPrintingRandomSamples(void) 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; union { float f_value; uint32_t int_value; } u;
/* These values are not covered by the MINSTD generator */ /* These values are not covered by the MINSTD generator */
...@@ -4163,8 +4167,8 @@ void testFloatPrintingRandomSamples(void) ...@@ -4163,8 +4167,8 @@ void testFloatPrintingRandomSamples(void)
u.int_value = a; printFloatValue(u.f_value); u.int_value = a; printFloatValue(u.f_value);
u.int_value = a | 0x80000000; printFloatValue(u.f_value); u.int_value = a | 0x80000000; printFloatValue(u.f_value);
} }
}
#endif #endif
}
// ===================== THESE TEST WILL RUN IF YOUR CONFIG INCLUDES DOUBLE SUPPORT ================== // ===================== THESE TEST WILL RUN IF YOUR CONFIG INCLUDES DOUBLE SUPPORT ==================
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册