X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FTest-Valgrind.git;a=blobdiff_plain;f=t%2F80-suppressions.t;h=bb93875bf15dd7467aeef3714775158c9737f082;hp=b6f22c7d6b1dfcb61b4e178fe0b1d773d90daa5e;hb=b53c95bc4c9013591c3051dd69d472518474d620;hpb=9da4ddc479c87b233cc7b2b182ca83c545f57065 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; }