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

Method SetTestLoad

Source/CTest/cmCTestMultiProcessHandler.cxx:194–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194void cmCTestMultiProcessHandler::SetTestLoad(unsigned long load)
195{
196 this->TestLoad = load;
197
198 std::string fake_load_value;
199 if (cmSystemTools::GetEnv("__CTEST_FAKE_LOAD_AVERAGE_FOR_TESTING",
200 fake_load_value)) {
201 if (!cmStrToULong(fake_load_value, &this->FakeLoadForTesting)) {
202 cmSystemTools::Error("Failed to parse fake load value: " +
203 fake_load_value);
204 }
205 }
206}
207
208bool cmCTestMultiProcessHandler::Complete()
209{

Callers 2

InitializeHandlerMethod · 0.45
ProcessDirectoryMethod · 0.45

Calls 2

cmStrToULongFunction · 0.85
ErrorClass · 0.50

Tested by

no test coverage detected