summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/GoogleTest/RunCMakeTest.cmake
diff options
context:
space:
mode:
authorMatthew Woehlke <matthew.woehlke@kitware.com>2017-11-28 16:06:02 (GMT)
committerBrad King <brad.king@kitware.com>2017-12-06 12:37:48 (GMT)
commit935848a8a7164631b9410a0e6f7c5574b01bb85c (patch)
tree663183ae91da5c9c5909115a62fbf796f114a692 /Tests/RunCMake/GoogleTest/RunCMakeTest.cmake
parent29731d89192681cbc4bf87d7947a877aa0fb27aa (diff)
downloadCMake-935848a8a7164631b9410a0e6f7c5574b01bb85c.zip
CMake-935848a8a7164631b9410a0e6f7c5574b01bb85c.tar.gz
CMake-935848a8a7164631b9410a0e6f7c5574b01bb85c.tar.bz2
GoogleTest: Add test for missing test executable
Add a test to verify expected behavior when a test executable on which gtest_discover_tests is invoked was not built. (The test for the newly added timeout conveniently sets up this situation, so this new test was almost trivial to add.)
Diffstat (limited to 'Tests/RunCMake/GoogleTest/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/GoogleTest/RunCMakeTest.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/GoogleTest/RunCMakeTest.cmake b/Tests/RunCMake/GoogleTest/RunCMakeTest.cmake
index 7a50579..73014d1 100644
--- a/Tests/RunCMake/GoogleTest/RunCMakeTest.cmake
+++ b/Tests/RunCMake/GoogleTest/RunCMakeTest.cmake
@@ -41,6 +41,13 @@ function(run_GoogleTest)
-L TEST2
--no-label-summary
)
+
+ run_cmake_command(GoogleTest-test-missing
+ ${CMAKE_CTEST_COMMAND}
+ -C Debug
+ -R timeout
+ --no-label-summary
+ )
endfunction()
run_GoogleTest()