From 99cd4d979bb48248bfcb5ae499a58770910dac1f Mon Sep 17 00:00:00 2001 From: Martin Duffy Date: Sat, 22 Feb 2025 20:10:20 -0500 Subject: [PATCH] CTest: Fix startTime in test snippets when using instrumentation Initialize SystemStartTime for TestProcess. --- Source/CTest/cmProcess.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/CTest/cmProcess.cxx b/Source/CTest/cmProcess.cxx index 3e1beb9024..acaead7189 100644 --- a/Source/CTest/cmProcess.cxx +++ b/Source/CTest/cmProcess.cxx @@ -57,6 +57,7 @@ bool cmProcess::StartProcess(uv_loop_t& loop, std::vector* 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());