]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Check that all servers in the <server> section are supported, not just
authorDan Fandrich <dan@coneharvesters.com>
Fri, 26 Oct 2007 19:26:04 +0000 (19:26 +0000)
committerDan Fandrich <dan@coneharvesters.com>
Fri, 26 Oct 2007 19:26:04 +0000 (19:26 +0000)
the first.

tests/runtests.pl

index 4e6e8838725885895a234d7c95e728b9e2a9e3bd..1182c09d4fad58bbeebf7f0148af674c51967164 100755 (executable)
@@ -2376,12 +2376,14 @@ sub serverfortest {
         return "no server specified";
     }
 
-    my $proto = lc($what[0]);
-    chomp $proto;
-    if (! grep /^$proto$/, @protocols) {
-        if (substr($proto,0,5) ne "socks") {
-               return "curl lacks any $proto support";
-        }
+    for (@what) {
+       my $proto = lc($_);
+       chomp $proto;
+       if (! grep /^$proto$/, @protocols) {
+           if (substr($proto,0,5) ne "socks") {
+                   return "curl lacks any $proto support";
+           }
+       }
     }
 
     return &startservers(@what);