mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-27 02:11:36 +01:00
update fixture tests too
This commit is contained in:
@@ -345,7 +345,7 @@ TEST_TEAR_DOWN(LeakDetection)
|
||||
/* This tricky set of defines lets us see if we are using the Spy, returns 1 if true */
|
||||
#ifdef __STDC_VERSION__
|
||||
|
||||
#if UNITY_SUPPORT_VARIADIC_MACROS
|
||||
#ifdef UNITY_SUPPORT_VARIADIC_MACROS
|
||||
#define USING_SPY_AS(a) EXPAND_AND_USE_2ND(ASSIGN_VALUE(a), 0)
|
||||
#define ASSIGN_VALUE(a) VAL_##a
|
||||
#define VAL_UnityOutputCharSpy_OutputChar 0, 1
|
||||
@@ -357,11 +357,13 @@ TEST_TEAR_DOWN(LeakDetection)
|
||||
#endif /* UNITY_SUPPORT_VARIADIC_MACROS */
|
||||
|
||||
#else /* __STDC_VERSION__ else */
|
||||
|
||||
#define UnityOutputCharSpy_OutputChar 42
|
||||
#if UNITY_OUTPUT_CHAR == UnityOutputCharSpy_OutputChar /* Works if no -Wundef -Werror */
|
||||
#define USING_OUTPUT_SPY
|
||||
#endif
|
||||
#undef UnityOutputCharSpy_OutputChar
|
||||
|
||||
#endif /* __STDC_VERSION__ */
|
||||
|
||||
TEST(LeakDetection, DetectsLeak)
|
||||
|
||||
Reference in New Issue
Block a user