[Box Backup-commit] COMMIT r2098 - box/trunk/infrastructure
boxbackup-dev@fluffy.co.uk
boxbackup-dev@fluffy.co.uk
Sat, 1 Mar 2008 22:37:05 +0000 (UTC)
Author: chris
Date: 2008-03-01 22:37:04 +0000 (Sat, 01 Mar 2008)
New Revision: 2098
Modified:
box/trunk/infrastructure/buildenv-testmain-template.cpp
Log:
Flush standard output when finishing test, useful on Windows where it
happens rarely and test output can end up below the PASSED line and
confuse the runtest script.
Modified: box/trunk/infrastructure/buildenv-testmain-template.cpp
===================================================================
--- box/trunk/infrastructure/buildenv-testmain-template.cpp 2008-03-01 22:31:51 UTC (rev 2097)
+++ box/trunk/infrastructure/buildenv-testmain-template.cpp 2008-03-01 22:37:04 UTC (rev 2098)
@@ -310,6 +310,9 @@
Timers::Init();
int returncode = test(argc, (const char **)argv);
Timers::Cleanup();
+
+ fflush(stdout);
+ fflush(stderr);
// check for memory leaks, if enabled
#ifdef BOX_MEMORY_LEAK_TESTING
@@ -326,6 +329,10 @@
if(fulltestmode)
{
bool filesleftopen = checkfilesleftopen();
+
+ fflush(stdout);
+ fflush(stderr);
+
if(filesleftopen)
{
failures++;