Browse Source

CTest: Fix startTime in test snippets when using instrumentation

Initialize SystemStartTime for TestProcess.
Martin Duffy 8 months ago
parent
commit
99cd4d979b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Source/CTest/cmProcess.cxx

+ 1 - 0
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());