COMP: Remove warning and fix the logic
This commit is contained in:
parent
81211fc427
commit
0af5ef0e99
@ -37,10 +37,13 @@ cmCTestGenericHandler* cmCTestTestCommand::InitializeHandler()
|
|||||||
timeout = atof(ctestTimeout);
|
timeout = atof(ctestTimeout);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
if ( timeout <= 0 )
|
||||||
{
|
{
|
||||||
// By default use timeout of 10 minutes
|
// By default use timeout of 10 minutes
|
||||||
timeout = 600;
|
timeout = 600;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
m_CTest->SetTimeOut(timeout);
|
m_CTest->SetTimeOut(timeout);
|
||||||
cmCTestGenericHandler* handler = m_CTest->GetInitializedHandler("test");
|
cmCTestGenericHandler* handler = m_CTest->GetInitializedHandler("test");
|
||||||
if ( m_Values[ctt_START] || m_Values[ctt_END] || m_Values[ctt_STRIDE] )
|
if ( m_Values[ctt_START] || m_Values[ctt_END] || m_Values[ctt_STRIDE] )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user