Skip to content

Commit 8a12e57

Browse files
authored
selfcheck.yml: run with valgrind --tool=memcheck (#8232)
1 parent bbdf547 commit 8a12e57

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/selfcheck.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,3 +202,16 @@ jobs:
202202
with:
203203
name: Callgrind Output
204204
path: ./callgrind.*
205+
206+
- name: Self check (unusedFunction / corpus / no test / memcheck)
207+
run: |
208+
# TODO: fix -rp so the suppressions actually work
209+
valgrind --error-limit=yes --leak-check=full --num-callers=50 --show-reachable=yes --track-origins=yes --gen-suppressions=all --log-fd=9 --error-exitcode=42 ./cppcheck --template=selfcheck --error-exitcode=0 --library=cppcheck-lib --library=qt -D__GNUC__ -DQT_VERSION=0x060000 -DQ_MOC_OUTPUT_REVISION=69 -DQT_CHARTS_LIB -DQT_MOC_HAS_STRINGDATA --enable=unusedFunction,information --exception-handling -rp=. --project=cmake.output.corpus/compile_commands.json --suppressions-list=.selfcheck_unused_suppressions --inline-suppr 9>memcheck.log || (cat memcheck.log && false)
210+
cat memcheck.log
211+
env:
212+
DISABLE_VALUEFLOW: 1
213+
214+
- uses: actions/upload-artifact@v4
215+
with:
216+
name: Memcheck Output
217+
path: ./memcheck.*

0 commit comments

Comments
 (0)