Browse Source

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

Andy Cedilnik 22 years ago
parent
commit
0c6d02853e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Source/cmCTest.cxx

+ 2 - 0
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: ";