Local test timeouts will now always take precedence over the global --timeout option.

This commit is contained in:
Zach Mullen 2009-12-08 10:26:43 -05:00
parent 1d91bc64aa
commit c32088cfee
1 changed files with 1 additions and 2 deletions

View File

@ -1051,8 +1051,7 @@ void cmCTestTestHandler::ProcessDirectory(std::vector<cmStdString> &passed,
p.Cost = rand();
}
if((p.Timeout == 0 || p.Timeout > this->CTest->GetGlobalTimeout())
&& this->CTest->GetGlobalTimeout() != 0)
if(p.Timeout == 0 && this->CTest->GetGlobalTimeout() != 0)
{
p.Timeout = this->CTest->GetGlobalTimeout();
}