From 0af5ef0e999da5fac5d3dc602cc1b4d16c09e57f Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Thu, 14 Jul 2005 09:29:54 -0400 Subject: [PATCH] COMP: Remove warning and fix the logic --- Source/CTest/cmCTestTestCommand.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/CTest/cmCTestTestCommand.cxx b/Source/CTest/cmCTestTestCommand.cxx index a802f9290..40979c671 100644 --- a/Source/CTest/cmCTestTestCommand.cxx +++ b/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");