mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-29 04:09:35 +03:00
cmCTestTestCommand: defer getting the global timeout
This commit is contained in:
@@ -33,10 +33,11 @@ cmCTestGenericHandler* cmCTestTestCommand::InitializeHandler()
|
||||
const char* ctestTimeout =
|
||||
this->Makefile->GetDefinition("CTEST_TEST_TIMEOUT");
|
||||
|
||||
double timeout = this->CTest->GetTimeOut();
|
||||
double timeout;
|
||||
if (ctestTimeout) {
|
||||
timeout = atof(ctestTimeout);
|
||||
} else {
|
||||
timeout = this->CTest->GetTimeOut();
|
||||
if (timeout <= 0) {
|
||||
// By default use timeout of 10 minutes
|
||||
timeout = 600;
|
||||
|
||||
Reference in New Issue
Block a user