ENH: Flush the output file, to make more nice output for tail -f

This commit is contained in:
Andy Cedilnik 2003-08-08 08:48:42 -04:00
parent a36bd0b212
commit 0c6d02853e
1 changed files with 2 additions and 0 deletions

View File

@ -2099,6 +2099,7 @@ std::string cmCTest::GetTestModelString()
}
return "Experimental";
}
bool cmCTest::RunMakeCommand(const char* command, std::string* output,
int* retVal, const char* dir, bool verbose, int timeout, std::ofstream& ofs)
{
@ -2159,6 +2160,7 @@ bool cmCTest::RunMakeCommand(const char* command, std::string* output,
if ( ofs )
{
ofs.write(data, length);
ofs.flush();
}
}
std::cout << " Size of output: ";