From be5cc378c8f49c135ab7cc0d7378dc8b035a20be Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 23 Nov 2004 09:50:16 +0000 Subject: 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 --- tests/runtests.pl | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'tests/runtests.pl') diff --git a/tests/runtests.pl b/tests/runtests.pl index 3b46d2a26..0acef67b4 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -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" -- cgit v1.2.3