BUG: Handle buggy streams

This commit is contained in:
Andy Cedilnik 2006-02-28 16:17:27 -05:00
parent 5b638bb136
commit 0321dae07b
1 changed files with 4 additions and 0 deletions

View File

@ -393,6 +393,10 @@ public:
inline std::ostream& operator<< (std::ostream& os, const cmCTestLogWrite& c)
{
if (!c.Length)
{
return os;
}
os.write(c.Data, c.Length);
os.flush();
return os;