summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/CTest/cmCTestRunTest.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestRunTest.cxx b/Source/CTest/cmCTestRunTest.cxx
index 32c3ef8..ffc257a 100644
--- a/Source/CTest/cmCTestRunTest.cxx
+++ b/Source/CTest/cmCTestRunTest.cxx
@@ -435,6 +435,8 @@ bool cmCTestRunTest::CreateProcess(double testTimeOut,
cmCTestLog(this->CTest, HANDLER_VERBOSE_OUTPUT, this->Index << ": "
<< "Test timeout computed to be: " << timeout << "\n");
+ this->TestProcess->SetTimeout(timeout);
+
if (this->ModifyEnv)
{
this->OrigEnv = cmSystemTools::AppendEnv(environment);