X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F10-good.t;h=3552113d8e590eada9c0d4cb34a805665d8c05b3;hb=f1aad8ec2ce1d9605f720789dbb48fb3afbec3e8;hp=d3ffb905c599d08e5037a323b2703030cd2c3958;hpb=44f0639e6ac34bdc0be52d47fe2c2df43ab1ca94;p=perl%2Fmodules%2FTest-Valgrind.git diff --git a/t/10-good.t b/t/10-good.t index d3ffb90..3552113 100644 --- a/t/10-good.t +++ b/t/10-good.t @@ -6,10 +6,15 @@ use warnings; use Test::More; use lib 't/lib'; -eval 'use Test::Valgrind'; + +eval { + require Test::Valgrind; + Test::Valgrind->import; +}; if ($@) { diag $@; - plan skip_all => 'Test::Valgrind is required to run test your distribution with valgrind'; + plan skip_all + => 'Test::Valgrind is required to test your distribution with valgrind'; } {