]> git.vpit.fr Git - perl/modules/Test-Valgrind.git/blob - gen.pl
Output what we got when t/30-bad.t fails
[perl/modules/Test-Valgrind.git] / gen.pl
1 use strict;
2 use warnings;
3
4 use Test::More;
5 eval {
6  use Test::Valgrind
7   diag    => 1,
8   no_test => 1,
9   no_supp => 1,
10   callers => 50,
11   extra   => [ qw/--show-reachable=yes --gen-suppressions=all/ ];
12 };
13 if ($@) {
14  plan skip_all => 'Test::Valgrind is required to run test your distribution with valgrind';
15 } else {
16  eval "
17   use lib qw{blib/arch};
18   require XSLoader;
19   XSLoader::load('Test::Valgrind', \$Test::Valgrind::VERSION);
20  ";
21  unless ($@) {
22   Test::Valgrind::notleak("valgrind it!");
23  } else {
24   diag $@;
25  }
26  plan tests => 1;
27  fail('fake');
28 }
29
30 1;