浏览代码

BUG: fix in the timeout code

Ken Martin 19 年之前
父节点
当前提交
098c1dcdfe
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      Source/cmCTest.cxx

+ 1 - 3
Source/cmCTest.cxx

@@ -1136,8 +1136,6 @@ int cmCTest::RunTest(std::vector<const char*> argv,
     {
     timeout = this->TimeOut;
     }
-  cmCTestLog(this, HANDLER_VERBOSE_OUTPUT, "-- timeout set to "
-             << testTimeOut << std::endl);
   if (testTimeOut && testTimeOut < timeout)
     {
     timeout = testTimeOut;
@@ -1148,7 +1146,7 @@ int cmCTest::RunTest(std::vector<const char*> argv,
     timeout = 1;
     }
 
-  cmsysProcess_SetTimeout(cp, this->TimeOut);
+  cmsysProcess_SetTimeout(cp, timeout);
   cmsysProcess_Execute(cp);
 
   char* data;