summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-02-12 14:26:47 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-02-12 14:26:47 (GMT)
commit8b1456e7fd281560d95af3a53261255b4183aa06 (patch)
tree7a4475494012dfc51f80e89f037e1f82ec95fc88 /Source/cmCTest.cxx
parentfd89ebbbaf2e36589aad3c0b80e2ddb0a3605763 (diff)
downloadCMake-8b1456e7fd281560d95af3a53261255b4183aa06.zip
CMake-8b1456e7fd281560d95af3a53261255b4183aa06.tar.gz
CMake-8b1456e7fd281560d95af3a53261255b4183aa06.tar.bz2
Write individual too
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r--Source/cmCTest.cxx15
1 files changed, 11 insertions, 4 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index 3892b15..ae5a8a8 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -499,16 +499,15 @@ int cmCTest::UpdateDirectory()
std::string goutput;
int retVal = 0;
bool res = true;
+ std::ofstream ofs;
if ( !m_ShowOnly )
{
res = cmSystemTools::RunCommand(command.c_str(), goutput,
retVal, sourceDirectory.c_str(),
m_Verbose);
- std::ofstream ofs;
if ( this->OpenOutputFile("Temporary", "LastUpdate.log", ofs) )
{
- ofs << goutput;
- ofs.close();
+ ofs << goutput << std::endl;;
}
}
else
@@ -562,6 +561,10 @@ int cmCTest::UpdateDirectory()
res = cmSystemTools::RunCommand(logcommand.c_str(), output,
retVal, sourceDirectory.c_str(),
m_Verbose);
+ if ( ofs )
+ {
+ ofs << output << std::endl;
+ }
if ( res && retVal == 0)
{
//std::cout << output << std::endl;
@@ -764,7 +767,11 @@ int cmCTest::UpdateDirectory()
os << "\t<EndDateTime>" << end_time << "</EndDateTime>\n"
<< "</Update>" << std::endl;
-
+ if ( ofs )
+ {
+ ofs.close();
+ }
+
if (! res || retVal )
{
std::cerr << "Error(s) when updating the project" << std::endl;