Skip to content

Commit

Permalink
tests: add suppression for memcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszstolarczuk committed Jul 21, 2022
1 parent 3c855cf commit fb91098
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/helpers.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2018-2021, Intel Corporation
# Copyright 2018-2022, Intel Corporation

set(DIR ${PARENT_DIR}/${TEST_NAME})

Expand Down Expand Up @@ -105,7 +105,7 @@ function(execute_common expect_success output_file name)
elseif(${TRACER} STREQUAL memcheck)
set(TRACE valgrind --error-exitcode=99 --tool=memcheck --leak-check=full
--suppressions=${TEST_ROOT_DIR}/ld.supp --suppressions=${TEST_ROOT_DIR}/memcheck-stdcpp.supp --suppressions=${TEST_ROOT_DIR}/memcheck-libunwind.supp
--suppressions=${TEST_ROOT_DIR}/memcheck-ndctl.supp)
--suppressions=${TEST_ROOT_DIR}/memcheck-ndctl.supp --suppressions=${TEST_ROOT_DIR}/memcheck.supp)
set(ENV{LIBPMEMOBJ_CPP_TRACER_MEMCHECK} 1)
elseif(${TRACER} STREQUAL helgrind)
set(TRACE valgrind --error-exitcode=99 --tool=helgrind --suppressions=${TEST_ROOT_DIR}/helgrind.supp)
Expand Down
7 changes: 7 additions & 0 deletions tests/memcheck.supp
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
<string cmp vectorization, libpmemobj-cpp #1262>
Memcheck:Addr32
fun:__wmemcmp_avx2_movbe
fun:compare
...
}

0 comments on commit fb91098

Please sign in to comment.