diff options
author | Brad King <brad.king@kitware.com> | 2023-11-02 19:39:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-11-17 23:41:41 (GMT) |
commit | afd185881f3b138389ab79024e397e52cfd945c3 (patch) | |
tree | aac84e36ff1409efe9af514c65a1b3b205180280 /Source/CTest | |
parent | 3bc3f6cbb57753926438c297d8838a5f9e589f23 (diff) | |
download | CMake-afd185881f3b138389ab79024e397e52cfd945c3.zip CMake-afd185881f3b138389ab79024e397e52cfd945c3.tar.gz CMake-afd185881f3b138389ab79024e397e52cfd945c3.tar.bz2 |
cmCTestMultiProcessHandler: Make loops over all pending tests more consistent
Some loops were using the ordered list unnecessarily while others used
the main map of pending test. Update all to use the latter.
Diffstat (limited to 'Source/CTest')
-rw-r--r-- | Source/CTest/cmCTestMultiProcessHandler.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/CTest/cmCTestMultiProcessHandler.cxx b/Source/CTest/cmCTestMultiProcessHandler.cxx index 4034941..e6466ad 100644 --- a/Source/CTest/cmCTestMultiProcessHandler.cxx +++ b/Source/CTest/cmCTestMultiProcessHandler.cxx @@ -358,11 +358,11 @@ bool cmCTestMultiProcessHandler::AllResourcesAvailable() void cmCTestMultiProcessHandler::CheckResourcesAvailable() { if (this->UseResourceSpec) { - for (auto test : this->OrderedTests) { + for (auto const& t : this->PendingTests) { std::map<std::string, std::vector<cmCTestBinPackerAllocation>> allocations; - this->TryAllocateResources(test, allocations, - &this->ResourceAllocationErrors[test]); + this->TryAllocateResources(t.first, allocations, + &this->ResourceAllocationErrors[t.first]); } } } @@ -587,8 +587,8 @@ void cmCTestMultiProcessHandler::StartNextTests() // Find out whether there are any non RUN_SERIAL tests left, so that the // correct warning may be displayed. bool onlyRunSerialTestsLeft = true; - for (auto const& test : this->OrderedTests) { - if (!this->Properties[test]->RunSerial) { + for (auto const& t : this->PendingTests) { + if (!this->Properties[t.first]->RunSerial) { onlyRunSerialTestsLeft = false; } } |