Skip to content

Commit 15e72e5

Browse files
MinyazevRusiems
authored andcommitted
Add memory tests with detect_leaks=1 to CI
1 parent c36cc0a commit 15e72e5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,16 @@ jobs:
6868
PYTHONDEVMODE=1 PYTHONASYNCIODEBUG=1 PYTHONWARNINGS=error PYTHONMALLOC=malloc_debug \
6969
UBSAN_OPTIONS="halt_on_error=1" ASAN_OPTIONS="detect_leaks=0:detect_stack_use_after_return=1:fast_unwind_on_malloc=0" \
7070
make check TESTARGS="-platform offscreen"
71+
72+
- name: Run memory tests with sanitizers
73+
run: |
74+
QT_VERSION_FULL=$(qmake -query QT_VERSION)
75+
if [[ $QT_VERSION_FULL == 5.12* ]]; then
76+
export LSAN_OPTIONS="suppressions=leak:QPlatformIntegrationFactory::create"
77+
fi
78+
PYTHONDEVMODE=1 PYTHONASYNCIODEBUG=1 PYTHONWARNINGS=error PYTHONMALLOC=malloc_debug \
79+
UBSAN_OPTIONS="halt_on_error=1" ASAN_OPTIONS="detect_leaks=1:detect_stack_use_after_return=1:fast_unwind_on_malloc=0" \
80+
PYTHONQT_RUN_ONLY_MEMORY_TESTS="true" make check TESTARGS="-platform minimal"
7181
7282
- name: Generate Wrappers
7383
run: |

0 commit comments

Comments
 (0)