mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
Merge topic 'test-LinkInterfaceLoop-custom-timeout'
716f8c88 Tests: Add option to customize LinkInterfaceLoop timeout
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !651
This commit is contained in:
@@ -9,7 +9,14 @@ macro(add_CMakeOnly_test test)
|
||||
endmacro()
|
||||
|
||||
add_CMakeOnly_test(LinkInterfaceLoop)
|
||||
set_property(TEST CMakeOnly.LinkInterfaceLoop PROPERTY TIMEOUT 90)
|
||||
# If a bug is introduced in CMake that causes an infinite loop while
|
||||
# analyzing LinkInterfaceLoop then don't let the test run too long.
|
||||
# Use an option to customize it so that the timeout can be extended
|
||||
# on busy machines.
|
||||
if(NOT DEFINED CMake_TEST_CMakeOnly.LinkInterfaceLoop_TIMEOUT)
|
||||
set(CMake_TEST_CMakeOnly.LinkInterfaceLoop_TIMEOUT 90)
|
||||
endif()
|
||||
set_property(TEST CMakeOnly.LinkInterfaceLoop PROPERTY TIMEOUT ${CMake_TEST_CMakeOnly.LinkInterfaceLoop_TIMEOUT})
|
||||
|
||||
add_CMakeOnly_test(CheckSymbolExists)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user