| 777 | } |
| 778 | |
| 779 | void cmCTestMultiProcessHandler::FinishTestProcess( |
| 780 | std::unique_ptr<cmCTestRunTest> runner, bool started) |
| 781 | { |
| 782 | this->Completed++; |
| 783 | |
| 784 | int test = runner->GetIndex(); |
| 785 | auto* properties = runner->GetTestProperties(); |
| 786 | |
| 787 | cmCTestRunTest::EndTestResult testResult = |
| 788 | runner->EndTest(this->Completed, this->Total, started); |
| 789 | if (testResult.StopTimePassed) { |
| 790 | this->SetStopTimePassed(); |
| 791 | } |
| 792 | if (started) { |
| 793 | if (!this->StopTimePassed && |
| 794 | cmCTestRunTest::StartAgain(std::move(runner), this->Completed)) { |
| 795 | this->Completed--; // remove the completed test because run again |
| 796 | return; |
| 797 | } |
| 798 | } |
| 799 | |
| 800 | if (testResult.Passed) { |
| 801 | this->Passed->push_back(properties->Name); |
| 802 | } else if (!properties->Disabled) { |
| 803 | this->Failed->push_back(properties->Name); |
| 804 | } |
| 805 | |
| 806 | for (auto& t : this->PendingTests) { |
| 807 | t.second.Depends.erase(test); |
| 808 | } |
| 809 | |
| 810 | this->WriteCheckpoint(test); |
| 811 | this->DeallocateResources(test); |
| 812 | this->UnlockResources(test); |
| 813 | |
| 814 | runner.reset(); |
| 815 | |
| 816 | if (this->JobServerClient) { |
| 817 | this->JobServerClient->ReleaseToken(); |
| 818 | } |
| 819 | this->StartNextTestsOnIdle(); |
| 820 | } |
| 821 | |
| 822 | void cmCTestMultiProcessHandler::UpdateCostData() |
| 823 | { |
no test coverage detected