summaryrefslogtreecommitdiffstats
path: root/Source/CTest
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-11-02 19:04:49 (GMT)
committerBrad King <brad.king@kitware.com>2023-11-22 12:49:04 (GMT)
commitb17c732e88e5681fd1ec90d587d796c44329028b (patch)
tree063115e21b9b1388999091ccd8cf0160ad274e56 /Source/CTest
parent0950acb3372d90f21d384600dcd9d9250f87421c (diff)
downloadCMake-b17c732e88e5681fd1ec90d587d796c44329028b.zip
CMake-b17c732e88e5681fd1ec90d587d796c44329028b.tar.gz
CMake-b17c732e88e5681fd1ec90d587d796c44329028b.tar.bz2
cmCTestMultiProcessHandler: Clarify role of StartTestProcess
Focus its role on actually running the test process. Move administrative tasks to the call site.
Diffstat (limited to 'Source/CTest')
-rw-r--r--Source/CTest/cmCTestMultiProcessHandler.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/CTest/cmCTestMultiProcessHandler.cxx b/Source/CTest/cmCTestMultiProcessHandler.cxx
index 3f1e019..d910367 100644
--- a/Source/CTest/cmCTestMultiProcessHandler.cxx
+++ b/Source/CTest/cmCTestMultiProcessHandler.cxx
@@ -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);
}