introducing the client/precheck concept to allow test 518 to *only* run when

it actually can run and test the FD_SETSIZE stuff it is meant to test
This commit is contained in:
Daniel Stenberg
2004-11-23 09:50:16 +00:00
parent 4afc4aed73
commit be5cc378c8
3 changed files with 49 additions and 12 deletions

View File

@@ -888,6 +888,21 @@ sub singletest {
$serverproblem = serverfortest($testnum);
}
if(!$serverproblem) {
my @precheck = getpart("client", "precheck");
my $cmd = $precheck[0];
chomp $cmd;
if($cmd) {
my @o = `$cmd 2>/dev/null`;
if($o[0]) {
$serverproblem = 15;
$why = $o[0];
chomp $why;
}
}
}
if($serverproblem) {
# there's a problem with the server, don't run
# this particular server, but count it as "skipped"