]> git.vpit.fr Git - perl/modules/Test-Valgrind.git/blobdiff - t/80-suppressions.t
Remove stack traces from common error messages
[perl/modules/Test-Valgrind.git] / t / 80-suppressions.t
index b6f22c7d6b1dfcb61b4e178fe0b1d773d90daa5e..bb93875bf15dd7467aeef3714775158c9737f082 100644 (file)
@@ -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;
 }