X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F80-suppressions.t;h=bb93875bf15dd7467aeef3714775158c9737f082;hb=f1aad8ec2ce1d9605f720789dbb48fb3afbec3e8;hp=b6f22c7d6b1dfcb61b4e178fe0b1d773d90daa5e;hpb=5ee5c767e23b5c9c7660a2a0fda30962ef924d65;p=perl%2Fmodules%2FTest-Valgrind.git diff --git a/t/80-suppressions.t b/t/80-suppressions.t index b6f22c7..bb93875 100644 --- a/t/80-suppressions.t +++ b/t/80-suppressions.t @@ -22,8 +22,9 @@ my $sess = eval { Test::Valgrind::Session->new( min_version => $tool->requires_version, ) }; -if ($@) { - plan skip_all => $@; +if (my $err = $@) { + $err =~ s/^(Empty valgrind candidates list|No appropriate valgrind executable could be found)\s+at.*/$1/; + plan skip_all => $err; } else { plan tests => 4; }