X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F10-good.t;h=fee58e3ef39e653998a5ed1ebbbd2388f3c16237;hb=b62067c81672ff40a3fcda54cb498feae33b752f;hp=2534e5161f2ad4d16336bc8ae769f7804c1c3268;hpb=b41c498738a3a4ccb8742883a42e6ea5addb1afd;p=perl%2Fmodules%2FTest-Valgrind.git diff --git a/t/10-good.t b/t/10-good.t index 2534e51..fee58e3 100644 --- a/t/10-good.t +++ b/t/10-good.t @@ -6,17 +6,25 @@ 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'; } { package Test::Valgrind::Test::Fake; - use base qw/strict/; + use base qw; } plan tests => 1; -fail 'should not be seen'; +fail 'dummy test in the child, should not interfere with the actual TAP stream';