]> 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 2534e5161f2ad4d16336bc8ae769f7804c1c3268..0d5696759d2c944fe892aff9dc40e9f60c84c960 100644 (file)
@@ -6,17 +6,22 @@ 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';
 }
 
 {
  package Test::Valgrind::Test::Fake;
 
- use base qw/strict/;
+ use base qw<strict>;
 }
 
 plan tests => 1;
-fail 'should not be seen';
+fail 'dummy test in the child, should not interfere with the actual TAP stream';