From 7f9a0f508f707ebc9bb544c03114c668d437df6f Mon Sep 17 00:00:00 2001 From: Zach Mullen Date: Fri, 4 Sep 2009 11:23:38 -0400 Subject: Fixed output as-it-happens issue. Now displays output as it receives each newline. --- Source/CTest/cmProcess.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/CTest/cmProcess.cxx b/Source/CTest/cmProcess.cxx index 2d98ad5..8f5b112 100644 --- a/Source/CTest/cmProcess.cxx +++ b/Source/CTest/cmProcess.cxx @@ -159,12 +159,16 @@ int cmProcess::CheckOutput(double timeout) { // Append to the stdout buffer. this->StdOutBuffer.insert(this->StdOutBuffer.end(), data, data+length); + this->LastOutputPipe = pipe; + return pipe; } else if(pipe == cmsysProcess_Pipe_STDERR) { // Append to the stderr buffer. this->StdErrorBuffer.insert(this->StdErrorBuffer.end(), data, data+length); + this->LastOutputPipe = pipe; + return pipe; } else if(pipe == cmsysProcess_Pipe_None) { -- cgit v0.12