ci: Tweak asan options
authorMatthias Clasen <mclasen@redhat.com>
Tue, 6 Jun 2023 01:09:51 +0000 (21:09 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 6 Jun 2023 01:09:51 +0000 (21:09 -0400)
Allow the allocator to return NULL, so our
g_try_malloc tests don't fail.

.gitlab-ci/run-tests.sh

index ded8da6d414ebf6be05c98b562d2e802dffc325f..935b88f9f4aab4a9e35424c5255b996e8055fe4c 100755 (executable)
@@ -9,7 +9,7 @@ backend=$2
 multiplier=${MESON_TEST_TIMEOUT_MULTIPLIER:-1}
 
 # Ignore memory leaks lower in dependencies
-export LSAN_OPTIONS=suppressions=$srcdir/lsan.supp:print_suppressions=0:detect_leaks=0
+export LSAN_OPTIONS=suppressions=$srcdir/lsan.supp:print_suppressions=0:detect_leaks=0:allocator_may_return_null=1
 export G_SLICE=always-malloc
 
 case "${backend}" in