cmCTestMultiProcessHandler: Clarify search for tests <= concurrency limit

This commit is contained in:
Brad King
2023-10-20 15:24:18 -04:00
parent ee321dc85f
commit 9b548139fd
+6 -1
View File
@@ -577,7 +577,12 @@ void cmCTestMultiProcessHandler::StartNextTests()
} }
} }
if (processors <= numToStart && this->StartTest(test)) { // Exclude tests that are too big to fit in the concurrency limit.
if (processors > numToStart) {
continue;
}
if (this->StartTest(test)) {
numToStart -= processors; numToStart -= processors;
} else if (numToStart == 0) { } else if (numToStart == 0) {
break; break;