diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-07-14 13:29:54 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-07-14 13:29:54 (GMT) |
commit | 0af5ef0e999da5fac5d3dc602cc1b4d16c09e57f (patch) | |
tree | 4da067c29459983f7a6945ae42478188fe514586 /Source/CTest/cmCTestTestCommand.cxx | |
parent | 81211fc427b04d9671cd3780d4ab10b4060e3cc1 (diff) | |
download | CMake-0af5ef0e999da5fac5d3dc602cc1b4d16c09e57f.zip CMake-0af5ef0e999da5fac5d3dc602cc1b4d16c09e57f.tar.gz CMake-0af5ef0e999da5fac5d3dc602cc1b4d16c09e57f.tar.bz2 |
COMP: Remove warning and fix the logic
Diffstat (limited to 'Source/CTest/cmCTestTestCommand.cxx')
-rw-r--r-- | Source/CTest/cmCTestTestCommand.cxx | 7 |
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"); |