Skip to content

Commit

Permalink
Make valgrind fail return -1 when running ctest memleak check
Browse files Browse the repository at this point in the history
  • Loading branch information
vigsterkr committed Feb 3, 2014
1 parent 795bce9 commit c641e93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Expand Up @@ -973,6 +973,7 @@ OPTION(BUILD_DASHBOARD_REPORTS "Set to ON to activate reporting of Shogun builds
IF(BUILD_DASHBOARD_REPORTS)
file(TO_CMAKE_PATH "${CMAKE_SOURCE_DIR}/configs/valgrind.supp" VALGRIND_SUPPRESSION_FILE)
SET(MEMORYCHECK_SUPPRESSIONS_FILE ${VALGRIND_SUPPRESSION_FILE} CACHE FILEPATH "File that contains suppressions for the memory checker")
SET(MEMORYCHECK_COMMAND_OPTIONS "--error-exitcode=-1")
include(CTest)
ENDIF()

Expand Down

0 comments on commit c641e93

Please sign in to comment.