Local test timeouts will now always take precedence over the global --timeout option.
This commit is contained in:
parent
1d91bc64aa
commit
c32088cfee
|
@ -1051,8 +1051,7 @@ void cmCTestTestHandler::ProcessDirectory(std::vector<cmStdString> &passed,
|
||||||
p.Cost = rand();
|
p.Cost = rand();
|
||||||
}
|
}
|
||||||
|
|
||||||
if((p.Timeout == 0 || p.Timeout > this->CTest->GetGlobalTimeout())
|
if(p.Timeout == 0 && this->CTest->GetGlobalTimeout() != 0)
|
||||||
&& this->CTest->GetGlobalTimeout() != 0)
|
|
||||||
{
|
{
|
||||||
p.Timeout = this->CTest->GetGlobalTimeout();
|
p.Timeout = this->CTest->GetGlobalTimeout();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue