]> granicus.if.org Git - curl/commitdiff
better strip
authorDaniel Stenberg <daniel@haxx.se>
Wed, 27 Jun 2001 22:01:08 +0000 (22:01 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 27 Jun 2001 22:01:08 +0000 (22:01 +0000)
tests/runtests.pl

index 84e910424372ba2cc344def47109a942a22c3206..6fa44778f405e34f45c3890849796f5af091aed1 100755 (executable)
@@ -567,9 +567,14 @@ sub singletest {
 
         # what to cut off from the live protocol sent by curl
         my @strip = getpart("verify", "strip");
-        @out = striparray( $strip[0], \@out);
 
-        my @protstrip= striparray($strip[0], \@protocol);
+        my @protstrip=@protocol;
+
+        for(@strip) {
+            # strip all patterns from both arrays
+            @out = striparray( $_, \@out);
+            @protstrip= striparray( $_, \@protstrip);
+        }
 
         $res = compare(\@out, \@protstrip);
         if($res) {