summaryrefslogtreecommitdiffstats
path: root/Source/CTest
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-11-02 19:39:52 (GMT)
committerBrad King <brad.king@kitware.com>2023-11-17 23:41:41 (GMT)
commitafd185881f3b138389ab79024e397e52cfd945c3 (patch)
treeaac84e36ff1409efe9af514c65a1b3b205180280 /Source/CTest
parent3bc3f6cbb57753926438c297d8838a5f9e589f23 (diff)
downloadCMake-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.cxx10
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;
}
}