summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.cxx
diff options
context:
space:
mode:
authorZach Mullen <zach.mullen@kitware.com>2009-08-19 12:58:36 (GMT)
committerZach Mullen <zach.mullen@kitware.com>2009-08-19 12:58:36 (GMT)
commitb9daa192af92266a375707e56963ebdb888065e4 (patch)
tree800d09fdc52d4b4c0ecfef84c27e43e7392dbff7 /Source/cmCTest.cxx
parentd8ecd02a7a0178c3709dd0ec75f6ab0e7a57e947 (diff)
downloadCMake-b9daa192af92266a375707e56963ebdb888065e4.zip
CMake-b9daa192af92266a375707e56963ebdb888065e4.tar.gz
CMake-b9daa192af92266a375707e56963ebdb888065e4.tar.bz2
ENH: Refactored CTest test execution code into an object
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r--Source/cmCTest.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index abf47a2..0b74107 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -1192,6 +1192,7 @@ int cmCTest::RunTest(std::vector<const char*> argv,
{
if ( output )
{
+ //ZACH: need to grab the output here
tempOutput.insert(tempOutput.end(), data, data+length);
}
cmCTestLog(this, HANDLER_VERBOSE_OUTPUT, cmCTestLogWrite(data, length));
@@ -1204,6 +1205,7 @@ int cmCTest::RunTest(std::vector<const char*> argv,
cmsysProcess_WaitForExit(cp, 0);
if(output && tempOutput.begin() != tempOutput.end())
{
+ //We are waiting for exit before finally appending to the output
output->append(&*tempOutput.begin(), tempOutput.size());
}
cmCTestLog(this, HANDLER_VERBOSE_OUTPUT, "-- Process completed"