From: Vincent Pit Date: Tue, 3 Nov 2009 20:58:33 +0000 (+0100) Subject: Make Suppressions->strip_tail remove multiple ellipsis X-Git-Tag: v1.12~4 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=07e9c71f216de121217542e294a3f4a2a2896919;p=perl%2Fmodules%2FTest-Valgrind.git Make Suppressions->strip_tail remove multiple ellipsis --- diff --git a/lib/Test/Valgrind/Suppressions.pm b/lib/Test/Valgrind/Suppressions.pm index fde934c..3af3a98 100644 --- a/lib/Test/Valgrind/Suppressions.pm +++ b/lib/Test/Valgrind/Suppressions.pm @@ -103,7 +103,10 @@ sub strip_tail { 1 while $supp =~ s/[^\r\n]*:\s*\*\s*$//; # With valgrind 3.4.0, we can replace unknown series of frames by '...' - $supp .= "...\n" if $sess->version ge '3.4.0'; + if ($sess->version ge '3.4.0') { + 1 while $supp =~ s/[^\r\n]*\.{3}\s*$//; + $supp .= "...\n"; + } $supp; }