From 8745e6308e8010855cd449ed42f3e5ce2089fed5 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 18 Aug 2025 14:04:12 -0400 Subject: ctest: Restore default of no time limit for command-line `-T Test` step Refactoring in commit 83845184db (cmCTest: Move timing functions from cmCTestScriptHandler to cmCTest, 2024-10-23, v4.0.0-rc1~576^2) enabled a time limit even if the undocumented `CTEST_TIME_LIMIT` script variable is not set. --- Source/cmCTest.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index 8f691bf..abb942b 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -3541,6 +3541,9 @@ cmDuration cmCTest::GetElapsedTime() const cmDuration cmCTest::GetRemainingTimeAllowed() const { + if (this->Impl->TimeLimit == cmCTest::MaxDuration()) { + return cmCTest::MaxDuration(); + } return this->Impl->TimeLimit - this->GetElapsedTime(); } -- cgit v0.12