X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FTest-Valgrind.git;a=blobdiff_plain;f=t%2F10-good.t;h=3552113d8e590eada9c0d4cb34a805665d8c05b3;hp=d3ffb905c599d08e5037a323b2703030cd2c3958;hb=d6ed05d0b24cd8815039e731d4b9ea69787f994e;hpb=bca85461fd8f34e21d6b1f4deb8b313c3771880d 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'; } {