mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-05-20 17:07:32 +08:00
update UNITY_OUTPUT_CHAR to not return a value (because we never check it anyway).
add UNITY_OUTPUT_FLUSH to make sure we get the output we need on aborted tests and whatnot.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
#include <stdio.h>
|
||||
#include "unity.h"
|
||||
|
||||
int putcharSpy(int c) {return putchar(c);} // include passthrough for linking tests
|
||||
void putcharSpy(int c) { (void)putchar(c);} // include passthrough for linking tests
|
||||
|
||||
#define TEST_CASE(...)
|
||||
|
||||
|
@ -2247,7 +2247,7 @@ char* getBufferPutcharSpy(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
int putcharSpy(int c)
|
||||
void putcharSpy(int c)
|
||||
{
|
||||
#ifdef USING_OUTPUT_SPY
|
||||
if (putcharSpyEnabled)
|
||||
@ -2257,7 +2257,6 @@ int putcharSpy(int c)
|
||||
} else
|
||||
c = putchar(c);
|
||||
#endif
|
||||
return c;
|
||||
}
|
||||
|
||||
void testFailureCountIncrementsAndIsReturnedAtEnd(void)
|
||||
|
Reference in New Issue
Block a user