aboutsummaryrefslogtreecommitdiff
path: root/tests/runtests.pl
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-11-22 22:26:46 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-11-22 22:26:46 +0000
commita4e1ac79527d8ac3552d96a00e5f2966123d0374 (patch)
tree4bda84d4225040f278e7e59a182810dd1152b214 /tests/runtests.pl
parentf84d2b4d361412e3c0a49369ec0299c9e618d4ac (diff)
David Phillips fix for test 518 and my extension to make it not run on
systems that can't run it fine.
Diffstat (limited to 'tests/runtests.pl')
-rwxr-xr-xtests/runtests.pl16
1 files changed, 16 insertions, 0 deletions
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(<CONF>) {
+ 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