浏览代码

COMP: Remove warning and fix the logic

Andy Cedilnik 20 年之前
父节点
当前提交
0af5ef0e99
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      Source/CTest/cmCTestTestCommand.cxx

+ 5 - 2
Source/CTest/cmCTestTestCommand.cxx

@@ -38,8 +38,11 @@ cmCTestGenericHandler* cmCTestTestCommand::InitializeHandler()
     }
   else
     {
-    // By default use timeout of 10 minutes
-    timeout = 600;
+    if ( timeout <= 0 )
+      {
+      // By default use timeout of 10 minutes
+      timeout = 600;
+      }
     }
   m_CTest->SetTimeOut(timeout);
   cmCTestGenericHandler* handler = m_CTest->GetInitializedHandler("test");