Преглед на файлове

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");