[pkg-perl-tools] 08/09: use.t: also run the tests with PERL_DL_NONLAZY=1

Niko Tyni ntyni at moszumanska.debian.org
Sat Dec 3 21:01:29 UTC 2016


This is an automated email from the git hooks/post-receive script.

ntyni pushed a commit to branch ntyni/autopkgtest
in repository pkg-perl-tools.

commit 685e3a21eb35730687bb3ca160e5f9690129682f
Author: Niko Tyni <ntyni at debian.org>
Date:   Sun Nov 27 21:51:12 2016 +0200

    use.t: also run the tests with PERL_DL_NONLAZY=1
    
    Closes: #830849
---
 autopkgtest/scripts/runtime-deps.d/use.t | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/autopkgtest/scripts/runtime-deps.d/use.t b/autopkgtest/scripts/runtime-deps.d/use.t
index f6bb90c..0d42b4b 100755
--- a/autopkgtest/scripts/runtime-deps.d/use.t
+++ b/autopkgtest/scripts/runtime-deps.d/use.t
@@ -85,17 +85,19 @@ my $whitelist = getwhitelist();
 
 usage() if !@modules;
 
-plan tests => 2 * scalar @modules;
+plan tests => 4 * scalar @modules;
 
 # don't run the command in the source directory, in case
 # cwd is on @INC
 chdir('/');
 
 for my $mod (@modules) {
-    my $cmd = qq($^X -w -M"$mod" -e 1 2>&1);
+  for my $envprefix ('', 'env PERL_DL_NONLAZY=1 ') {
+    my $cmd = qq($envprefix $^X -w -M"$mod" -e 1 2>&1);
     my @out = qx($cmd);
     note(@out) if @out;
     ok(!$?, "$cmd exited successfully");
     @out = grep { !/$whitelist/ } @out if defined $whitelist;
     ok(!@out, "$cmd produced no (non-whitelisted) output");
+  }
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/pkg-perl-tools.git



More information about the Pkg-perl-cvs-commits mailing list