summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmProcess.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-09-11 20:20:24 (GMT)
committerBrad King <brad.king@kitware.com>2009-09-11 20:20:24 (GMT)
commit8c24c1dcc3e6ab73d1127b17399157271635d5ff (patch)
treeee1746dbca12a92333ba267ac97d27307b598fe0 /Source/CTest/cmProcess.cxx
parent8a690289c205da90133e704439dc6f7ef1a08680 (diff)
downloadCMake-8c24c1dcc3e6ab73d1127b17399157271635d5ff.zip
CMake-8c24c1dcc3e6ab73d1127b17399157271635d5ff.tar.gz
CMake-8c24c1dcc3e6ab73d1127b17399157271635d5ff.tar.bz2
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.
Diffstat (limited to 'Source/CTest/cmProcess.cxx')
-rw-r--r--Source/CTest/cmProcess.cxx1
1 files changed, 1 insertions, 0 deletions
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;
}