From: Vincent Pit Date: Fri, 1 Jan 2010 16:56:15 +0000 (+0100) Subject: Don't croak if Sub::Op::Test's Makefile.PL couldn't find the blib dir for Sub::Op X-Git-Tag: v0.01~21 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=f59c18ec4255558e7fce5bebb34dc47cb66f88d1;p=perl%2Fmodules%2FSub-Op.git Don't croak if Sub::Op::Test's Makefile.PL couldn't find the blib dir for Sub::Op --- diff --git a/t/Sub-Op-Test/Makefile.PL b/t/Sub-Op-Test/Makefile.PL index b25c324..b75f206 100644 --- a/t/Sub-Op-Test/Makefile.PL +++ b/t/Sub-Op-Test/Makefile.PL @@ -20,11 +20,15 @@ BEGIN { use ExtUtils::Depends; -use blib $top; +my %ed_vars = eval { + require blib; + blib->import($top); -my $ed = ExtUtils::Depends->new($name => 'Sub::Op'); + my $ed = ExtUtils::Depends->new($name => 'Sub::Op'); + + $ed->get_makefile_vars; +}; -my %ed_vars = $ed->get_makefile_vars; $ed_vars{clean}->{FILES} .= ' ' . join ' ', "$dist-*", qw{*.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt};