From 1f148c103c81166be4acb224450030e499518036 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 8 Feb 2014 23:19:10 +0100 Subject: runtests: allow to remove lines For verify file, if the strippart condition removes the line completely it is now removed from the array. --- tests/runtests.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/runtests.pl b/tests/runtests.pl index 0de76e3d1..8a47d5853 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -3809,9 +3809,16 @@ sub singletest { my $strip; for $strip (@stripfile) { chomp $strip; + my @newgen; for(@generated) { eval $strip; + if($_) { + push @newgen, $_; + } } + # this is to get rid of array entries that vanished (zero + # length) because of replacements + @generated = @newgen; } @outfile = fixarray(@outfile); -- cgit v1.2.3