Flush stdout after putchar('.') to ensure that the characters are printed immediately as a progress indicator.
This commit is contained in:
parent
bcf3a1e9e1
commit
f5730a7d12
|
@ -82,6 +82,7 @@ bool TestFixture::prepareTest(const char testname[])
|
||||||
++countTests;
|
++countTests;
|
||||||
if (quiet_tests) {
|
if (quiet_tests) {
|
||||||
std::putchar('.'); // Use putchar to write through redirection of std::cout/cerr
|
std::putchar('.'); // Use putchar to write through redirection of std::cout/cerr
|
||||||
|
std::fflush(stdout);
|
||||||
} else {
|
} else {
|
||||||
std::cout << classname << "::" << testname << std::endl;
|
std::cout << classname << "::" << testname << std::endl;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue