aboutsummaryrefslogtreecommitdiff
path: root/tests/runtests.pl
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-02-08 23:19:10 +0100
committerDaniel Stenberg <daniel@haxx.se>2014-02-08 23:19:10 +0100
commit1f148c103c81166be4acb224450030e499518036 (patch)
treeb1b16d8d663dd376c4a3b98397d80418d0d6632c /tests/runtests.pl
parent132f5edfbd0c5f843deda910974fc7c2d1e52440 (diff)
runtests: allow <strippart> to remove lines
For verify file, if the strippart condition removes the line completely it is now removed from the array.
Diffstat (limited to 'tests/runtests.pl')
-rwxr-xr-xtests/runtests.pl7
1 files changed, 7 insertions, 0 deletions
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);