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:
Mark VanderVoord
2016-05-06 10:47:39 -04:00
parent 7053ef7523
commit c5c392b18a
4 changed files with 26 additions and 7 deletions

View File

@ -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(...)

View File

@ -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)