summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-07-14 13:29:54 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-07-14 13:29:54 (GMT)
commit0af5ef0e999da5fac5d3dc602cc1b4d16c09e57f (patch)
tree4da067c29459983f7a6945ae42478188fe514586 /Source
parent81211fc427b04d9671cd3780d4ab10b4060e3cc1 (diff)
downloadCMake-0af5ef0e999da5fac5d3dc602cc1b4d16c09e57f.zip
CMake-0af5ef0e999da5fac5d3dc602cc1b4d16c09e57f.tar.gz
CMake-0af5ef0e999da5fac5d3dc602cc1b4d16c09e57f.tar.bz2
COMP: Remove warning and fix the logic
Diffstat (limited to 'Source')
-rw-r--r--Source/CTest/cmCTestTestCommand.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestTestCommand.cxx b/Source/CTest/cmCTestTestCommand.cxx
index a802f92..40979c6 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");