| 101 | } |
| 102 | |
| 103 | class TestComparator |
| 104 | { |
| 105 | public: |
| 106 | TestComparator(cmCTestMultiProcessHandler* handler) |
| 107 | : Handler(handler) |
| 108 | { |
| 109 | } |
| 110 | |
| 111 | // Sorts tests in descending order of cost |
| 112 | bool operator()(int index1, int index2) const |
| 113 | { |
| 114 | return this->Handler->Properties[index1]->Cost > |
| 115 | this->Handler->Properties[index2]->Cost; |
| 116 | } |
| 117 | |
| 118 | private: |
| 119 | cmCTestMultiProcessHandler* Handler; |
| 120 | }; |
| 121 | |
| 122 | cmCTestMultiProcessHandler::cmCTestMultiProcessHandler( |
| 123 | cmCTest* ctest, cmCTestTestHandler* handler) |
no outgoing calls
searching dependent graphs…