diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-09-12 15:41:14 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-09-12 15:41:14 +0000 |
commit | 84bc46ac3b448d4d3c5b044bb48e4fa3928c15d6 (patch) | |
tree | 1d1d459141d252f091885b53ee1412216e820d85 /tests | |
parent | fd42247cacff58fddba6a2629aa2978241f68402 (diff) |
When people have environment variables set for protocol proxies, we must make
sure to clear them before we run the tests as they interfere badly otherwise.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/runtests.pl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl index 897a04cbd..17089ae54 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -87,6 +87,19 @@ chomp($pwd = `pwd`); $ENV{'CURL_MEMDEBUG'} = 1; $ENV{'HOME'}=$pwd; +########################################################################## +# Clear all possible '*_proxy' environment variables for various protocols +# to prevent them to interfere with our testing! + +my $protocol; +foreach $protocol (('ftp', 'http', 'ftps', 'https', 'gopher', 'no')) { + my $proxy = "${protocol}_proxy"; + # clear lowercase version + $ENV{$proxy}=undef; + # clear uppercase version + $ENV{uc($proxy)}=undef; +} + ####################################################################### # Return the pid of the server as found in the given pid file # |