From f5730a7d129518ba672e3ed0fbf1ae6133179d0f Mon Sep 17 00:00:00 2001 From: PKEuS Date: Tue, 5 Aug 2014 13:22:40 +0200 Subject: [PATCH] Flush stdout after putchar('.') to ensure that the characters are printed immediately as a progress indicator. --- test/testsuite.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/test/testsuite.cpp b/test/testsuite.cpp index adc220b89..75dbba9b3 100644 --- a/test/testsuite.cpp +++ b/test/testsuite.cpp @@ -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; }