summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.h
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-02-28 21:17:27 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-02-28 21:17:27 (GMT)
commit0321dae07b030e7cf0be1b31254ac9ee942e8790 (patch)
tree9185a0bc8e5a32ccdf47340e90e42762dcafbd9c /Source/cmCTest.h
parent5b638bb1362aad1a38eef1fb318b7a7e5b775d7b (diff)
downloadCMake-0321dae07b030e7cf0be1b31254ac9ee942e8790.zip
CMake-0321dae07b030e7cf0be1b31254ac9ee942e8790.tar.gz
CMake-0321dae07b030e7cf0be1b31254ac9ee942e8790.tar.bz2
BUG: Handle buggy streams
Diffstat (limited to 'Source/cmCTest.h')
-rw-r--r--Source/cmCTest.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmCTest.h b/Source/cmCTest.h
index c51a112..44a4c13 100644
--- a/Source/cmCTest.h
+++ b/Source/cmCTest.h
@@ -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;