X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F80-suppressions.t;h=b6f22c7d6b1dfcb61b4e178fe0b1d773d90daa5e;hb=5ee5c767e23b5c9c7660a2a0fda30962ef924d65;hp=b9266a5f7aa351fd3ed64330b0b8e896c703a43a;hpb=b9e3e9311a415d0fa583815b40ba5af0b4a3e3a8;p=perl%2Fmodules%2FTest-Valgrind.git diff --git a/t/80-suppressions.t b/t/80-suppressions.t index b9266a5..b6f22c7 100644 --- a/t/80-suppressions.t +++ b/t/80-suppressions.t @@ -3,11 +3,10 @@ use strict; use warnings; -use Test::More tests => 4; +use Test::More; use Test::Valgrind::Command; use Test::Valgrind::Tool; -use Test::Valgrind::Action; use Test::Valgrind::Session; my $cmd = Test::Valgrind::Command->new( @@ -19,9 +18,15 @@ my $tool = Test::Valgrind::Tool->new( tool => 'memcheck', ); -my $sess = Test::Valgrind::Session->new( +my $sess = eval { Test::Valgrind::Session->new( min_version => $tool->requires_version, -); +) }; + +if ($@) { + plan skip_all => $@; +} else { + plan tests => 4; +} $sess->command($cmd); $sess->tool($tool);