mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-06 18:35:19 +00:00
THRIFT-3086 add valgrind suppression support to the ExperimentalMemCheck test run
Patch: James E. King, III This closes #481
This commit is contained in:
parent
ec847acab5
commit
446a319f9a
@ -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
9
test/valgrind.suppress
Normal 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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user