summaryrefslogtreecommitdiffstats
path: root/Source/CTest
diff options
context:
space:
mode:
authorZach Mullen <zach.mullen@kitware.com>2009-09-04 15:23:38 (GMT)
committerZach Mullen <zach.mullen@kitware.com>2009-09-04 15:23:38 (GMT)
commit7f9a0f508f707ebc9bb544c03114c668d437df6f (patch)
tree774ec6a37a4a9383abed8b29a7f2f55253796e67 /Source/CTest
parentc6e5dd21fdc0b8f09e5c91d003c1fdd99ebc5e13 (diff)
downloadCMake-7f9a0f508f707ebc9bb544c03114c668d437df6f.zip
CMake-7f9a0f508f707ebc9bb544c03114c668d437df6f.tar.gz
CMake-7f9a0f508f707ebc9bb544c03114c668d437df6f.tar.bz2
Fixed output as-it-happens issue. Now displays output as it receives each newline.
Diffstat (limited to 'Source/CTest')
-rw-r--r--Source/CTest/cmProcess.cxx4
1 files changed, 4 insertions, 0 deletions
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)
{