mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
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.)
This commit is contained in:
committed by
Brad King
parent
29731d8919
commit
935848a8a7
@@ -0,0 +1 @@
|
||||
[^0]
|
||||
@@ -0,0 +1,2 @@
|
||||
Unable to find executable: timeout_test_NOT_BUILT
|
||||
Errors while running CTest
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user