MCPcopy Create free account
hub / github.com/Kitware/CMake / StartTest

Method StartTest

Source/CTest/cmCTestMultiProcessHandler.cxx:564–579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

562}
563
564void cmCTestMultiProcessHandler::StartTest(int test)
565{
566 if (this->JobServerClient) {
567 // There is a job server. Request a token and queue the test to run
568 // when a token is received. Note that if we do not get a token right
569 // away it's possible that the system load will be higher when the
570 // token is received and we may violate the test-load limit. However,
571 // this is unlikely because if we do not get a token right away, some
572 // other job that's currently running must finish before we get one.
573 this->JobServerClient->RequestToken();
574 this->JobServerQueuedTests.emplace_back(test);
575 } else {
576 // There is no job server. Start the test now.
577 this->StartTestProcess(test);
578 }
579}
580
581void cmCTestMultiProcessHandler::JobServerReceivedToken()
582{

Callers 1

StartNextTestsMethod · 0.95

Calls 3

StartTestProcessMethod · 0.95
RequestTokenMethod · 0.80
emplace_backMethod · 0.80

Tested by

no test coverage detected