mirror of
https://github.com/curl/curl.git
synced 2026-04-25 02:02:11 +03:00
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.
This commit is contained in:
parent
fd42247cac
commit
84bc46ac3b
1 changed files with 13 additions and 0 deletions
|
|
@ -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
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue