Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
1e72091e
Commit
1e72091e
authored
Jul 13, 2005
by
Andy Cedilnik
Browse files
ENH: Add timeout support
parent
3e020b3d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Source/CTest/cmCTestTestCommand.cxx
View file @
1e72091e
...
...
@@ -30,6 +30,18 @@ cmCTestTestCommand::cmCTestTestCommand()
cmCTestGenericHandler
*
cmCTestTestCommand
::
InitializeHandler
()
{
const
char
*
ctestTimeout
=
m_Makefile
->
GetDefinition
(
"CTEST_TEST_TIMEOUT"
);
double
timeout
=
m_CTest
->
GetTimeOut
();
if
(
ctestTimeout
)
{
timeout
=
atof
(
ctestTimeout
);
}
else
{
// By default use timeout of 10 minutes
timeout
=
600
;
}
m_CTest
->
SetTimeOut
(
timeout
);
cmCTestGenericHandler
*
handler
=
m_CTest
->
GetInitializedHandler
(
"test"
);
if
(
m_Values
[
ctt_START
]
||
m_Values
[
ctt_END
]
||
m_Values
[
ctt_STRIDE
]
)
{
...
...
Source/cmCTest.h
View file @
1e72091e
...
...
@@ -92,6 +92,7 @@ public:
///! what is the configuraiton type, e.g. Debug, Release etc.
std
::
string
GetConfigType
();
double
GetTimeOut
()
{
return
m_TimeOut
;
}
void
SetTimeOut
(
double
t
)
{
m_TimeOut
=
t
;
}
/**
* Check if CTest file exists
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment