Browse Source

BUG: CTest should honor test timeouts.

Zach Mullen 16 years ago
parent
commit
a5be445ca9
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Source/CTest/cmCTestRunTest.cxx

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