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=ce5c5af1678760adf23fc0fcb2aa49fe88767a38 commit ce5c5af1678760adf23fc0fcb2aa49fe88767a38 Author: Guillem Jover <guil...@debian.org> AuthorDate: Mon May 6 00:42:46 2024 +0200 test: Unset DEB_BUILD_MAINT_OPTIONS in build flags tests If we set this environment variable with optimize=+lto, then the test fails. We need to unset it, like we do in other test files, to be resilient against users or packaging setting this variable. --- scripts/t/Dpkg_BuildFlags_Ubuntu.t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/t/Dpkg_BuildFlags_Ubuntu.t b/scripts/t/Dpkg_BuildFlags_Ubuntu.t index 822fbf6f7..0f2efba37 100644 --- a/scripts/t/Dpkg_BuildFlags_Ubuntu.t +++ b/scripts/t/Dpkg_BuildFlags_Ubuntu.t @@ -53,6 +53,8 @@ sub test_no_ltoflag my $bf; +undef $ENV{DEB_BUILD_MAINT_OPTIONS}; + # Force loading the Dpkg::Vendor::Ubuntu module. $ENV{DEB_VENDOR} = 'Ubuntu'; -- Dpkg.Org's dpkg