You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is the following Valgrind configuration in CMake file from test subdirectory (test/CMakeLists.txt).
And it looks like there is a typo.
if(JSON_Valgrind)
find_program(CMAKE_MEMORYCHECK_COMMAND valgrind)
message(STATUS"Executing test suite with Valgrind (${CMAKE_MEMORYCHECK_COMMAND})")
set(MEMORYCHECK_COMMAND_OPTIONS "--error-exitcode=1 --leak-check=full")
set(memcheck_command "${CMAKE_MEMORYCHECK_COMMAND}${CMAKE_MEMORYCHECK_COMMAND_OPTIONS}")
separate_arguments(memcheck_command)
endif()
Variable CMAKE_MEMORYCHECK_COMMAND_OPTIONS is not initialized instead of that we have set(MEMORYCHECK_COMMAND_OPTIONS, ...). Therefore automated execution of tests will not report any memory check problem.
The text was updated successfully, but these errors were encountered:
tsemaylo
changed the title
Makefile: Valgring flags have no effect
Makefile: Valgrind flags have no effect
Mar 29, 2018
There is the following Valgrind configuration in CMake file from test subdirectory (test/CMakeLists.txt).
And it looks like there is a typo.
Variable
CMAKE_MEMORYCHECK_COMMAND_OPTIONS
is not initialized instead of that we haveset(MEMORYCHECK_COMMAND_OPTIONS, ...)
. Therefore automated execution of tests will not report any memory check problem.The text was updated successfully, but these errors were encountered: