This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=0d3527afdb9dc6155f3019ca1b9d10b83af68a9b commit 0d3527afdb9dc6155f3019ca1b9d10b83af68a9b Author: Guillem Jover <guil...@debian.org> AuthorDate: Sun Mar 17 18:40:29 2024 +0100 test: Do not fail the functional test suite due to memory leaks The codebase still has many static variables, and variables used during error conditions that are not cleaned up on exit or error, either because they are state or short-lived variables used during error unwinding. --- scripts/t/dpkg_buildpackage.t | 3 +++ tests/Test.mk | 3 +++ 2 files changed, 6 insertions(+) diff --git a/scripts/t/dpkg_buildpackage.t b/scripts/t/dpkg_buildpackage.t index bfcd23fd9..3f8c73c96 100644 --- a/scripts/t/dpkg_buildpackage.t +++ b/scripts/t/dpkg_buildpackage.t @@ -89,6 +89,9 @@ DA := debian/${binary-name-any} # fakeroot confuses ASAN link order check. export ASAN_OPTIONS = verify_asan_link_order=0 +# Do not fail due to leaks, as the code is still using lots of +# static variables and error variables. +export LSAN_OPTIONS = exitcode=0 clean: rm -f debian/files diff --git a/tests/Test.mk b/tests/Test.mk index 3c020af2c..a830d5d49 100644 --- a/tests/Test.mk +++ b/tests/Test.mk @@ -27,6 +27,9 @@ DPKG_ENV = \ # eatmydata confuses ASAN link order check. export ASAN_OPTIONS = verify_asan_link_order=0 +# Do not fail due to leaks, as the code is still using lots of +# static variables and error variables. +export LSAN_OPTIONS = exitcode=0 ifdef DPKG_BUILDTREE export DPKG_DATADIR := $(DPKG_BUILDTREE)/src -- Dpkg.Org's dpkg