Skip to content

Commit e9a2ddd

Browse files
committed
[DO NOT MERGE] Added suppression file for valgrind
1 parent 3828d54 commit e9a2ddd

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.github/actions/Build_and_Test_CppInterOp/action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,16 @@ runs:
5959
cmake --build . --target check-cppinterop --parallel ${{ env.ncpus }}
6060
os="${{ matrix.os }}"
6161
if [[ "${os}" != "macos"* ]]; then
62+
CLANG_VERSION="${{ matrix.clang-runtime }}"
63+
if [[ "${{ matrix.cling }}" == "On" ]]; then
64+
CLANG_INTERPRETER="cling"
65+
else
66+
CLANG_INTERPRETER="clang"
67+
fi
68+
SUPPRESSION_FILE="../etc/${CLANG_INTERPRETER}${CLANG_VERSION}-valgrind.supp"
6269
valgrind --show-error-list=yes --track-origins=yes --error-exitcode=1 \
6370
--show-leak-kinds=definite,possible \
71+
--suppressions="${SUPPRESSION_FILE}" \
6472
unittests/CppInterOp/CppInterOpTests/unittests/bin/${{ env.BUILD_TYPE }}/CppInterOpTests
6573
fi
6674
fi

etc/clang20-valgrind.supp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
llvm_orc_uninitialized_write
3+
Memcheck:Param
4+
write(buf)
5+
fun:write
6+
fun:*FDSimpleRemoteEPCTransport*sendMessage*
7+
}
8+
9+
{
10+
llvm_orc_uninitialized_memory
11+
Memcheck:Param
12+
write(buf)
13+
...
14+
obj:*/libclangCppInterOp.so*
15+
}

0 commit comments

Comments
 (0)