THRIFT-3086 add valgrind suppression support to the ExperimentalMemCheck test run

Patch: James E. King, III

This closes #481
This commit is contained in:
Roger Meier 2015-05-09 23:40:54 +02:00
parent ec847acab5
commit 446a319f9a
2 changed files with 12 additions and 0 deletions

View File

@ -77,6 +77,9 @@ elseif(UNIX)
add_definitions("-DUSE_STD_THREAD=1")
endif()
find_program( MEMORYCHECK_COMMAND valgrind )
set( MEMORYCHECK_COMMAND_OPTIONS "--gen-suppressions=all --leak-check=full" )
set( MEMORYCHECK_SUPPRESSIONS_FILE "${PROJECT_SOURCE_DIR}/test/valgrind.suppress" )
endif()
# GCC and Clang.

9
test/valgrind.suppress Normal file
View File

@ -0,0 +1,9 @@
{
boost/get_once_per_thread_epoch/ignore
Memcheck:Leak
match-leak-kinds: reachable
fun:malloc
fun:_ZN5boost6detail25get_once_per_thread_epochEv
}