فهرست منبع

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.
Brad King 16 سال پیش
والد
کامیت
8c24c1dcc3
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      Source/CTest/cmProcess.cxx

+ 1 - 0
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;
     }