Browse Source

CTest: Fix startTime in test snippets when using instrumentation

Initialize SystemStartTime for TestProcess.
pull/377/head
Martin Duffy 5 months ago
committed by Brad King
parent
commit
99cd4d979b
  1. 1
      Source/CTest/cmProcess.cxx

1
Source/CTest/cmProcess.cxx

@ -57,6 +57,7 @@ bool cmProcess::StartProcess(uv_loop_t& loop, std::vector<size_t>* affinity)
return false;
}
this->StartTime = std::chrono::steady_clock::now();
this->SystemStartTime = std::chrono::system_clock::now();
this->ProcessArgs.clear();
// put the command as arg0
this->ProcessArgs.push_back(this->Command.c_str());

Loading…
Cancel
Save