]> granicus.if.org Git - check/commitdiff
Allow tests to be checked with Valgrind via ctest
authorDotsenko Andrey <cnconlinux@gmail.com>
Sun, 6 Nov 2016 07:47:03 +0000 (10:47 +0300)
committerDotsenko Andrey <cnconlinux@gmail.com>
Mon, 7 Nov 2016 16:28:09 +0000 (19:28 +0300)
If some tests have segmentation faults those could be located with "ctest -D ExperimentalMemCheck".

tests/CMakeLists.txt

index 6e80679c6fe97f63093fdc82460ef678b8df68d8..27ad1bf653a95a03dfd5f4ae4986526c926b310f 100644 (file)
@@ -40,6 +40,8 @@ endif(WIN32)
 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/test_vars.in
   ${CMAKE_CURRENT_BINARY_DIR}/test_vars)
 
+include(CTest)
+
 set(CHECK_CHECK_SOURCES
   check_check_exit.c
   check_check_fixture.c