]> git.vpit.fr Git - perl/modules/Test-Valgrind.git/blobdiff - t/10-good.t
Clean up tests
[perl/modules/Test-Valgrind.git] / t / 10-good.t
index d3ffb905c599d08e5037a323b2703030cd2c3958..3552113d8e590eada9c0d4cb34a805665d8c05b3 100644 (file)
@@ -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';
 }
 
 {