Skip to content

Commit fd69d55

Browse files
committed
[ci] Configure valgrind suppressions for Cling 1.2
1 parent 8a406d7 commit fd69d55

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.github/workflows/Ubuntu-arm.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,14 @@ jobs:
560560
561561
echo "Running valgrind on passing tests"
562562
CLANG_VERSION="${{ matrix.clang-runtime }}"
563-
SUPPRESSION_FILE="../etc/clang${CLANG_VERSION}-valgrind_arm.supp"
563+
564+
if [[ "${{ matrix.cling }}" == "On" ]]; then
565+
CLANG_INTERPRETER="cling"
566+
else
567+
CLANG_INTERPRETER="clang"
568+
fi
569+
570+
SUPPRESSION_FILE="../etc/${CLANG_INTERPRETER}${CLANG_VERSION}-valgrind_arm.supp"
564571
valgrind --show-error-list=yes --error-exitcode=1 --track-origins=yes --gen-suppressions=all --suppressions="${SUPPRESSION_FILE}" --suppressions=../etc/valgrind-cppyy-cling.supp python -m pytest -m "not xfail" -sv -ra
565572
export RETCODE=+$?
566573
echo ::endgroup::

.github/workflows/Ubuntu.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,14 @@ jobs:
546546
547547
echo "Running valgrind on passing tests"
548548
CLANG_VERSION="${{ matrix.clang-runtime }}"
549-
SUPPRESSION_FILE="../etc/clang${CLANG_VERSION}-valgrind.supp"
549+
550+
if [[ "${{ matrix.cling }}" == "On" ]]; then
551+
CLANG_INTERPRETER="cling"
552+
else
553+
CLANG_INTERPRETER="clang"
554+
fi
555+
556+
SUPPRESSION_FILE="../etc/${CLANG_INTERPRETER}${CLANG_VERSION}-valgrind.supp"
550557
valgrind --show-error-list=yes --error-exitcode=1 --track-origins=yes --gen-suppressions=all --suppressions="${SUPPRESSION_FILE}" --suppressions=../etc/valgrind-cppyy-cling.supp python -m pytest -m "not xfail" -sv -ra
551558
export RETCODE=+$?
552559
echo ::endgroup::

0 commit comments

Comments
 (0)