summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestMultiProcessHandler.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/CTest/cmCTestMultiProcessHandler.cxx')
-rw-r--r--Source/CTest/cmCTestMultiProcessHandler.cxx14
1 files changed, 12 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestMultiProcessHandler.cxx b/Source/CTest/cmCTestMultiProcessHandler.cxx
index d97148d..5c3e999 100644
--- a/Source/CTest/cmCTestMultiProcessHandler.cxx
+++ b/Source/CTest/cmCTestMultiProcessHandler.cxx
@@ -125,6 +125,16 @@ bool cmCTestMultiProcessHandler::Complete()
return this->Completed == this->Total;
}
+void cmCTestMultiProcessHandler::InitializeLoop()
+{
+ this->Loop.init();
+}
+
+void cmCTestMultiProcessHandler::FinalizeLoop()
+{
+ this->Loop.reset();
+}
+
void cmCTestMultiProcessHandler::RunTests()
{
this->CheckResume();
@@ -133,10 +143,10 @@ void cmCTestMultiProcessHandler::RunTests()
}
this->TestHandler->SetMaxIndex(this->FindMaxIndex());
- this->Loop.init();
+ this->InitializeLoop();
this->StartNextTests();
uv_run(this->Loop, UV_RUN_DEFAULT);
- this->Loop.reset();
+ this->FinalizeLoop();
if (!this->StopTimePassed && !this->CheckStopOnFailure()) {
assert(this->Complete());