| 540 | } |
| 541 | |
| 542 | inline size_t cmCTestMultiProcessHandler::GetProcessorsUsed(int test) |
| 543 | { |
| 544 | size_t processors = this->Properties[test]->Processors; |
| 545 | size_t const parallelLevel = this->GetParallelLevel(); |
| 546 | // If processors setting is set higher than the -j |
| 547 | // setting, we default to using all of the process slots. |
| 548 | if (processors > parallelLevel) { |
| 549 | processors = parallelLevel; |
| 550 | } |
| 551 | // Cap tests that want affinity to the maximum affinity available. |
| 552 | if (this->HaveAffinity && processors > this->HaveAffinity && |
| 553 | this->Properties[test]->WantAffinity) { |
| 554 | processors = this->HaveAffinity; |
| 555 | } |
| 556 | return processors; |
| 557 | } |
| 558 | |
| 559 | std::string cmCTestMultiProcessHandler::GetName(int test) |
| 560 | { |
no test coverage detected