summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestMultiProcessHandler.cxx
diff options
context:
space:
mode:
authorZach Mullen <zach.mullen@kitware.com>2009-09-03 19:33:44 (GMT)
committerZach Mullen <zach.mullen@kitware.com>2009-09-03 19:33:44 (GMT)
commitd4adde13d7d507f5896b8c7912e46bbbcb71b539 (patch)
tree45e30f838f6443a50c276be0f0507ee392020799 /Source/CTest/cmCTestMultiProcessHandler.cxx
parentf686dbecb6c25178954b8190e95a3a265e9b2813 (diff)
downloadCMake-d4adde13d7d507f5896b8c7912e46bbbcb71b539.zip
CMake-d4adde13d7d507f5896b8c7912e46bbbcb71b539.tar.gz
CMake-d4adde13d7d507f5896b8c7912e46bbbcb71b539.tar.bz2
Allowed tests to pull more than one line of output in their quantum. Fixed uninitialized variables in the case that the test process could not start.
Diffstat (limited to 'Source/CTest/cmCTestMultiProcessHandler.cxx')
-rw-r--r--Source/CTest/cmCTestMultiProcessHandler.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestMultiProcessHandler.cxx b/Source/CTest/cmCTestMultiProcessHandler.cxx
index f0d926c..9fc4c07 100644
--- a/Source/CTest/cmCTestMultiProcessHandler.cxx
+++ b/Source/CTest/cmCTestMultiProcessHandler.cxx
@@ -100,7 +100,8 @@ void cmCTestMultiProcessHandler::StartTestProcess(int test)
}
else
{
- testRun->EndTest(this->Completed, this->Total);
+ this->Completed++;
+ testRun->EndTest(this->Completed, this->Total, false);
}
}
@@ -209,7 +210,7 @@ bool cmCTestMultiProcessHandler::CheckOutput()
cmCTestRunTest* p = *i;
int test = p->GetIndex();
- if(p->EndTest(this->Completed, this->Total))
+ if(p->EndTest(this->Completed, this->Total, true))
{
this->Passed->push_back(p->GetTestProperties()->Name);
}