From a4e1ac79527d8ac3552d96a00e5f2966123d0374 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 22 Nov 2004 22:26:46 +0000 Subject: David Phillips fix for test 518 and my extension to make it not run on systems that can't run it fine. --- tests/runtests.pl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'tests/runtests.pl') diff --git a/tests/runtests.pl b/tests/runtests.pl index c6384cf32..3b46d2a26 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -95,6 +95,7 @@ my $gdb = checkcmd("gdb"); my $ssl_version; # set if libcurl is built with SSL support my $large_file; # set if libcurl is built with large file support my $has_idn; # set if libcurl is built with IDN support +my $has_getrlimit; # set if system has getrlimit() my $skipped=0; # number of tests skipped; reported in main loop my %skipped; # skipped{reason}=counter, reasons for skip @@ -763,6 +764,16 @@ sub checkcurl { die "couldn't run '$CURL'" } + if(-r "../lib/config.h") { + open(CONF, "<../lib/config.h"); + while() { + if($_ =~ /^\#define HAVE_GETRLIMIT/) { + $has_getrlimit = 1; + } + } + close(CONF); + } + if(!$curl_debug && $torture) { die "can't run torture tests since curl was not build with debug"; } @@ -862,6 +873,11 @@ sub singletest { next; } } + elsif($f eq "getrlimit") { + if($has_getrlimit) { + next; + } + } $why = "curl lacks $f support"; $serverproblem = 15; # set it here -- cgit v1.2.3