From: Dan Fandrich Date: Fri, 26 Oct 2007 19:26:04 +0000 (+0000) Subject: Check that all servers in the section are supported, not just X-Git-Tag: curl-7_17_1~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f55ed0ef7e4b277184293e5365719b7ae00c1b2;p=thirdparty%2Fcurl.git Check that all servers in the section are supported, not just the first. --- diff --git a/tests/runtests.pl b/tests/runtests.pl index 4e6e883872..1182c09d4f 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -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);