Skip to content

Commit f177676

Browse files
tests: add suppression for memcheck
ref. pmem#1262
1 parent f49772a commit f177676

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

tests/helpers.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SPDX-License-Identifier: BSD-3-Clause
2-
# Copyright 2018-2021, Intel Corporation
2+
# Copyright 2018-2022, Intel Corporation
33

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

@@ -105,7 +105,7 @@ function(execute_common expect_success output_file name)
105105
elseif(${TRACER} STREQUAL memcheck)
106106
set(TRACE valgrind --error-exitcode=99 --tool=memcheck --leak-check=full
107107
--suppressions=${TEST_ROOT_DIR}/ld.supp --suppressions=${TEST_ROOT_DIR}/memcheck-stdcpp.supp --suppressions=${TEST_ROOT_DIR}/memcheck-libunwind.supp
108-
--suppressions=${TEST_ROOT_DIR}/memcheck-ndctl.supp)
108+
--suppressions=${TEST_ROOT_DIR}/memcheck-ndctl.supp --suppressions=${TEST_ROOT_DIR}/memcheck.supp)
109109
set(ENV{LIBPMEMOBJ_CPP_TRACER_MEMCHECK} 1)
110110
elseif(${TRACER} STREQUAL helgrind)
111111
set(TRACE valgrind --error-exitcode=99 --tool=helgrind --suppressions=${TEST_ROOT_DIR}/helgrind.supp)

tests/memcheck.supp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
<string cmp vectorization, libpmemobj-cpp #1262>
3+
Memcheck:Addr32
4+
fun:__wmemcmp_avx2_movbe
5+
fun:compare
6+
...
7+
}

0 commit comments

Comments
 (0)