Flush stdout after putchar('.') to ensure that the characters are printed immediately as a progress indicator.

This commit is contained in:
PKEuS 2014-08-05 13:22:40 +02:00
parent bcf3a1e9e1
commit f5730a7d12
1 changed files with 1 additions and 0 deletions

View File

@ -82,6 +82,7 @@ bool TestFixture::prepareTest(const char testname[])
++countTests;
if (quiet_tests) {
std::putchar('.'); // Use putchar to write through redirection of std::cout/cerr
std::fflush(stdout);
} else {
std::cout << classname << "::" << testname << std::endl;
}