BUG: Even if update fails it should produce valid XML

This commit is contained in:
Andy Cedilnik 2004-06-09 11:19:46 -04:00
parent 67c068428c
commit 699a6cfe38
1 changed files with 8 additions and 8 deletions

View File

@ -991,16 +991,16 @@ int cmCTest::UpdateDirectory()
} }
os << "\t</Author>" << std::endl; os << "\t</Author>" << std::endl;
} }
}
//std::cout << "End" << std::endl; //std::cout << "End" << std::endl;
std::string end_time = ::CurrentTime(); std::string end_time = ::CurrentTime();
os << "\t<EndDateTime>" << end_time << "</EndDateTime>\n" os << "\t<EndDateTime>" << end_time << "</EndDateTime>\n"
<< "</Update>" << std::endl; << "</Update>" << std::endl;
if ( ofs ) if ( ofs )
{ {
ofs.close(); ofs.close();
}
} }
if (! res || retVal ) if (! res || retVal )