aboutsummaryrefslogtreecommitdiff
path: root/tests/runtests.pl
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-11-23 09:50:16 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-11-23 09:50:16 +0000
commitbe5cc378c8f49c135ab7cc0d7378dc8b035a20be (patch)
tree42156a5f5b876adbcd3306aee6cf9fabb4e26282 /tests/runtests.pl
parent4afc4aed7351083b57469dcca44be77412d0d1a3 (diff)
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
Diffstat (limited to 'tests/runtests.pl')
-rwxr-xr-xtests/runtests.pl15
1 files changed, 15 insertions, 0 deletions
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"