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:
parent
02d1822103
commit
447a6e69b5
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue