]> git.vpit.fr Git - perl/modules/Test-Valgrind.git/blobdiff - t/10-good.t
Enable the 'diag' option in tests
[perl/modules/Test-Valgrind.git] / t / 10-good.t
index d3ffb905c599d08e5037a323b2703030cd2c3958..0d5696759d2c944fe892aff9dc40e9f60c84c960 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(diag => 1);
+};
 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';
 }
 
 {
@@ -19,4 +24,4 @@ if ($@) {
 }
 
 plan tests => 1;
-fail 'should not be seen';
+fail 'dummy test in the child, should not interfere with the actual TAP stream';