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';
}
{
}
plan tests => 1;
-fail 'should not be seen';
+fail 'dummy test in the child, should not interfere with the actual TAP stream';