]> git.vpit.fr Git - perl/modules/Test-Valgrind.git/blobdiff - t/10-good.t
Add 'regen_def_supp', an option to regenerate the suppressions
[perl/modules/Test-Valgrind.git] / t / 10-good.t
index d3ffb905c599d08e5037a323b2703030cd2c3958..fee58e3ef39e653998a5ed1ebbbd2388f3c16237 100644 (file)
@@ -6,10 +6,18 @@ use warnings;
 use Test::More;
 
 use lib 't/lib';
-eval 'use Test::Valgrind';
+
+eval {
+ require Test::Valgrind;
+ Test::Valgrind->import(
+  diag           => 1,
+  regen_def_supp => 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 +27,4 @@ if ($@) {
 }
 
 plan tests => 1;
-fail 'should not be seen';
+fail 'dummy test in the child, should not interfere with the actual TAP stream';