From 8c24c1dcc3e6ab73d1127b17399157271635d5ff Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 11 Sep 2009 16:20:24 -0400 Subject: Fix new CTest output handling for no newline When we clear the buffer for an output pipe after returning the last partial line (without a newline) we need to set the partial line range to empty. Otherwise the buffer object is left in an inconsistent state. --- Source/CTest/cmProcess.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/CTest/cmProcess.cxx b/Source/CTest/cmProcess.cxx index facd649..f97f038 100644 --- a/Source/CTest/cmProcess.cxx +++ b/Source/CTest/cmProcess.cxx @@ -114,6 +114,7 @@ bool cmProcess::Buffer::GetLast(std::string& line) if(!this->empty()) { line.assign(&*this->begin(), this->size()); + this->First = this->Last = 0; this->clear(); return true; } -- cgit v0.12