diff options
author | Ryan Thornton <ThorntonRyan@JohnDeere.com> | 2020-03-11 19:18:32 (GMT) |
---|---|---|
committer | Ryan Thornton <ThorntonRyan@JohnDeere.com> | 2020-03-11 20:10:23 (GMT) |
commit | 2c9680eec59fb52b4bf60b2b995101c86a906ca5 (patch) | |
tree | 1ad23d3ad8ec2e42d151679d18a539c8d9f0996e /Tests/RunCMake/GoogleTest/RunCMakeTest.cmake | |
parent | c06e0356017beef41cd2bb57a6cebfb242a9128e (diff) | |
download | CMake-2c9680eec59fb52b4bf60b2b995101c86a906ca5.zip CMake-2c9680eec59fb52b4bf60b2b995101c86a906ca5.tar.gz CMake-2c9680eec59fb52b4bf60b2b995101c86a906ca5.tar.bz2 |
GoogleTest: Add missing test case for gtest_discover_tests failure
Discovery timeout test needs split out into two components:
- build
- test
Building the project should result in a failure due to the timeout
when executing gtest discovery as a post build step.
Likewise, if you ran CTest after this build failure,
we should *also* detect that the discovery_timeout_test has not been built
because no discovery_timeout_test[1]_tests.cmake has been created
due to the test discovery failure (caused by the timeout).
Diffstat (limited to 'Tests/RunCMake/GoogleTest/RunCMakeTest.cmake')
-rw-r--r-- | Tests/RunCMake/GoogleTest/RunCMakeTest.cmake | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Tests/RunCMake/GoogleTest/RunCMakeTest.cmake b/Tests/RunCMake/GoogleTest/RunCMakeTest.cmake index 0fa4e2a..8c6b507 100644 --- a/Tests/RunCMake/GoogleTest/RunCMakeTest.cmake +++ b/Tests/RunCMake/GoogleTest/RunCMakeTest.cmake @@ -27,7 +27,7 @@ function(run_GoogleTest) ) set(RunCMake_TEST_OUTPUT_MERGE 1) - run_cmake_command(GoogleTest-discovery-timeout + run_cmake_command(GoogleTest-discovery-timeout-build ${CMAKE_COMMAND} --build . --config Debug @@ -69,6 +69,13 @@ function(run_GoogleTest) -R property_timeout\\.case_with_discovery --no-label-summary ) + + run_cmake_command(GoogleTest-discovery-timeout-test + ${CMAKE_CTEST_COMMAND} + -C Debug + -R discovery_timeout_test + --no-label-summary + ) endfunction() run_GoogleTest() |