summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-08-08 12:48:42 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-08-08 12:48:42 (GMT)
commit0c6d02853edadfc98980cceecc49f7d491751632 (patch)
tree2db8117423d8ab4a941ab2949eccf49f87e56e79 /Source/cmCTest.cxx
parenta36bd0b2124ddeb3d23e03d75d4d602c47da4884 (diff)
downloadCMake-0c6d02853edadfc98980cceecc49f7d491751632.zip
CMake-0c6d02853edadfc98980cceecc49f7d491751632.tar.gz
CMake-0c6d02853edadfc98980cceecc49f7d491751632.tar.bz2
ENH: Flush the output file, to make more nice output for tail -f
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r--Source/cmCTest.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index cb6932b..31bc8ff 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -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: ";