Force doctest to flush each message to stdout.

This should avoid missing messages due to buffering should the
process crash soon after a message was written.
This commit is contained in:
Lewis Baker 2018-01-06 09:35:22 +10:30 committed by Lewis Baker
parent 02d1822103
commit 447a6e69b5

View file

@ -5036,6 +5036,8 @@ namespace doctest
DOCTEST_PRINTF_COLORED(context.c_str(), Color::None);
DOCTEST_PRINTF_COLORED("\n", Color::None);
std::fflush(stdout);
printToDebugConsole(String(loc) + msg + " " + info.c_str() + "\n" + context.c_str() +
"\n");