Flush immediately after each line when running tests.
This commit is contained in:
parent
ea47247dc7
commit
96034810df
@ -255,16 +255,12 @@ template class SizeChecker<UInt8, 1>;
|
|||||||
|
|
||||||
#ifndef TEST_GLOBALS
|
#ifndef TEST_GLOBALS
|
||||||
|
|
||||||
// These fiunctions are defined in Logger.cpp, but are declared here to avoid including all of logger.h
|
// These functions are defined in Logger.cpp, but are declared here to avoid including all of logger.h
|
||||||
extern void LOG (const char * a_Format, ...) FORMATSTRING(1, 2);
|
extern void LOG (const char * a_Format, ...) FORMATSTRING(1, 2);
|
||||||
extern void LOGINFO (const char * a_Format, ...) FORMATSTRING(1, 2);
|
extern void LOGINFO (const char * a_Format, ...) FORMATSTRING(1, 2);
|
||||||
extern void LOGWARNING(const char * a_Format, ...) FORMATSTRING(1, 2);
|
extern void LOGWARNING(const char * a_Format, ...) FORMATSTRING(1, 2);
|
||||||
extern void LOGERROR (const char * a_Format, ...) FORMATSTRING(1, 2);
|
extern void LOGERROR (const char * a_Format, ...) FORMATSTRING(1, 2);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// In debug builds, translate LOGD to LOG, otherwise leave it out altogether:
|
// In debug builds, translate LOGD to LOG, otherwise leave it out altogether:
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#define LOGD LOG
|
#define LOGD LOG
|
||||||
@ -273,6 +269,7 @@ extern void LOGERROR (const char * a_Format, ...) FORMATSTRING(1, 2);
|
|||||||
#endif // _DEBUG
|
#endif // _DEBUG
|
||||||
|
|
||||||
#define LOGWARN LOGWARNING
|
#define LOGWARN LOGWARNING
|
||||||
|
|
||||||
#else
|
#else
|
||||||
// Logging functions
|
// Logging functions
|
||||||
void inline LOGERROR(const char * a_Format, ...) FORMATSTRING(1, 2);
|
void inline LOGERROR(const char * a_Format, ...) FORMATSTRING(1, 2);
|
||||||
@ -283,6 +280,7 @@ void inline LOGERROR(const char * a_Format, ...)
|
|||||||
va_start(argList, a_Format);
|
va_start(argList, a_Format);
|
||||||
vprintf(a_Format, argList);
|
vprintf(a_Format, argList);
|
||||||
putchar('\n');
|
putchar('\n');
|
||||||
|
fflush(stdout);
|
||||||
va_end(argList);
|
va_end(argList);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -294,6 +292,7 @@ void inline LOGWARNING(const char * a_Format, ...)
|
|||||||
va_start(argList, a_Format);
|
va_start(argList, a_Format);
|
||||||
vprintf(a_Format, argList);
|
vprintf(a_Format, argList);
|
||||||
putchar('\n');
|
putchar('\n');
|
||||||
|
fflush(stdout);
|
||||||
va_end(argList);
|
va_end(argList);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -305,6 +304,7 @@ void inline LOGD(const char * a_Format, ...)
|
|||||||
va_start(argList, a_Format);
|
va_start(argList, a_Format);
|
||||||
vprintf(a_Format, argList);
|
vprintf(a_Format, argList);
|
||||||
putchar('\n');
|
putchar('\n');
|
||||||
|
fflush(stdout);
|
||||||
va_end(argList);
|
va_end(argList);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -316,6 +316,7 @@ void inline LOG(const char * a_Format, ...)
|
|||||||
va_start(argList, a_Format);
|
va_start(argList, a_Format);
|
||||||
vprintf(a_Format, argList);
|
vprintf(a_Format, argList);
|
||||||
putchar('\n');
|
putchar('\n');
|
||||||
|
fflush(stdout);
|
||||||
va_end(argList);
|
va_end(argList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user