mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-23 00:15:58 +01:00
Added flushSpy
This commit is contained in:
@@ -8,10 +8,13 @@
|
||||
#include <stdio.h>
|
||||
#include "unity.h"
|
||||
|
||||
void putcharSpy(int c) { (void)putchar(c);} // include passthrough for linking tests
|
||||
|
||||
/* Support for Meta Test Rig */
|
||||
#define TEST_CASE(...)
|
||||
|
||||
/* Include Passthroughs for Linking Tests */
|
||||
void putcharSpy(int c) { (void)putchar(c);}
|
||||
void flushSpy(int c) {}
|
||||
|
||||
#define EXPECT_ABORT_BEGIN \
|
||||
if (TEST_PROTECT()) \
|
||||
{
|
||||
|
||||
@@ -3335,6 +3335,14 @@ void putcharSpy(int c)
|
||||
#endif
|
||||
}
|
||||
|
||||
#if 0
|
||||
void flushSpy(void)
|
||||
{
|
||||
static unsigned int calls = 0;
|
||||
calls++; // count every call
|
||||
}
|
||||
#endif
|
||||
|
||||
void testFailureCountIncrementsAndIsReturnedAtEnd(void)
|
||||
{
|
||||
UNITY_UINT savedFailures = Unity.TestFailures;
|
||||
|
||||
Reference in New Issue
Block a user