Repository: thrift Updated Branches: refs/heads/master ec847acab -> 446a319f9
THRIFT-3086 add valgrind suppression support to the ExperimentalMemCheck test run Patch: James E. King, III This closes #481 Project: http://git-wip-us.apache.org/repos/asf/thrift/repo Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/446a319f Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/446a319f Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/446a319f Branch: refs/heads/master Commit: 446a319f9a26695fb06b725a4959f28c82b558c0 Parents: ec847ac Author: Roger Meier <[email protected]> Authored: Sat May 9 23:40:54 2015 +0200 Committer: Roger Meier <[email protected]> Committed: Sat May 9 23:40:54 2015 +0200 ---------------------------------------------------------------------- build/cmake/DefinePlatformSpecifc.cmake | 3 +++ test/valgrind.suppress | 9 +++++++++ 2 files changed, 12 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/thrift/blob/446a319f/build/cmake/DefinePlatformSpecifc.cmake ---------------------------------------------------------------------- diff --git a/build/cmake/DefinePlatformSpecifc.cmake b/build/cmake/DefinePlatformSpecifc.cmake index 07272ce..515bb18 100644 --- a/build/cmake/DefinePlatformSpecifc.cmake +++ b/build/cmake/DefinePlatformSpecifc.cmake @@ -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. http://git-wip-us.apache.org/repos/asf/thrift/blob/446a319f/test/valgrind.suppress ---------------------------------------------------------------------- diff --git a/test/valgrind.suppress b/test/valgrind.suppress new file mode 100644 index 0000000..41f9414 --- /dev/null +++ b/test/valgrind.suppress @@ -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 +} + +
