diff options
author | Brad King <brad.king@kitware.com> | 2017-04-03 13:25:13 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-04-03 13:25:55 (GMT) |
commit | 1e83154f08805ca761e53471f571d93060057653 (patch) | |
tree | be83d98248a5af036d4b3270f843d18f0546d086 /Tests | |
parent | 5ee415207b50a98831910fbe32c5055e30aa5dd2 (diff) | |
parent | 716f8c88c9c94dc58f22ae770d613a4fec51c276 (diff) | |
download | CMake-1e83154f08805ca761e53471f571d93060057653.zip CMake-1e83154f08805ca761e53471f571d93060057653.tar.gz CMake-1e83154f08805ca761e53471f571d93060057653.tar.bz2 |
Merge topic 'test-LinkInterfaceLoop-custom-timeout'
716f8c88 Tests: Add option to customize LinkInterfaceLoop timeout
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !651
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CMakeOnly/CMakeLists.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Tests/CMakeOnly/CMakeLists.txt b/Tests/CMakeOnly/CMakeLists.txt index c692cbd..d44c836 100644 --- a/Tests/CMakeOnly/CMakeLists.txt +++ b/Tests/CMakeOnly/CMakeLists.txt @@ -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) |