cmCTestMultiProcessHandler: Clarify role of StartTestProcess

Focus its role on actually running the test process.
Move administrative tasks to the call site.
This commit is contained in:
Brad King
2023-11-02 15:04:49 -04:00
parent 0950acb337
commit b17c732e88
+4 -4
View File
@@ -164,12 +164,8 @@ void cmCTestMultiProcessHandler::RunTests()
void cmCTestMultiProcessHandler::StartTestProcess(int test)
{
this->LockResources(test);
cmCTestOptionalLog(this->CTest, HANDLER_VERBOSE_OUTPUT,
"test " << test << "\n", this->Quiet);
// now remove the test itself
this->ErasePendingTest(test);
auto testRun = cm::make_unique<cmCTestRunTest>(*this, test);
@@ -591,8 +587,12 @@ void cmCTestMultiProcessHandler::StartNextTests()
continue;
}
// Lock resources needed by this test.
this->LockResources(test);
// The test is ready to run.
numToStart -= processors;
this->ErasePendingTest(test);
this->StartTest(test);
}