CTest: Fix startTime in test snippets when using instrumentation

Initialize SystemStartTime for TestProcess.
This commit is contained in:
Martin Duffy
2025-02-22 20:10:20 -05:00
committed by Brad King
parent 12e76f1e26
commit 99cd4d979b

View File

@@ -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());