ENH: Flush the output file, to make more nice output for tail -f
This commit is contained in:
parent
a36bd0b212
commit
0c6d02853e
|
@ -2099,6 +2099,7 @@ std::string cmCTest::GetTestModelString()
|
||||||
}
|
}
|
||||||
return "Experimental";
|
return "Experimental";
|
||||||
}
|
}
|
||||||
|
|
||||||
bool cmCTest::RunMakeCommand(const char* command, std::string* output,
|
bool cmCTest::RunMakeCommand(const char* command, std::string* output,
|
||||||
int* retVal, const char* dir, bool verbose, int timeout, std::ofstream& ofs)
|
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 )
|
if ( ofs )
|
||||||
{
|
{
|
||||||
ofs.write(data, length);
|
ofs.write(data, length);
|
||||||
|
ofs.flush();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
std::cout << " Size of output: ";
|
std::cout << " Size of output: ";
|
||||||
|
|
Loading…
Reference in New Issue