Skip to content
Snippets Groups Projects
Commit 3ee85a68 authored by Sebastian Eibl's avatar Sebastian Eibl
Browse files

add never running test

parent 3a4c6c74
No related branches found
No related tags found
1 merge request!2add ctest example
...@@ -8,6 +8,10 @@ add_executable(success success.cpp) ...@@ -8,6 +8,10 @@ add_executable(success success.cpp)
# create an executable that returns failure # create an executable that returns failure
add_executable(failure failure.cpp) add_executable(failure failure.cpp)
# Tests in this subdirectory will never be called since CTest is not yet
# included!
add_subdirectory(tests)
# Make sure to include CTest before adding any test with add_test # Make sure to include CTest before adding any test with add_test
# otherwise the tests will not be registered. # otherwise the tests will not be registered.
include(CTest) include(CTest)
......
add_executable(never_run never_run.cpp)
add_test(
NAME never_run
COMMAND never_run )
#include <cstdlib>
int main()
{
return EXIT_SUCCESS;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment