netrc: Enable setting up the filename in unit tests.
Unset the environment variable so that we can specify different filenames in the unit test.
This commit is contained in:
@@ -2487,6 +2487,9 @@ sub singletest {
|
||||
}
|
||||
}
|
||||
elsif($f eq "unittest") {
|
||||
# Unit tests should set the netrc filename directly, thus unset the
|
||||
# environment variable.
|
||||
delete($ENV{'CURL_DEBUG_NETRC'}) if $ENV{'CURL_DEBUG_NETRC'};
|
||||
if($debug_build) {
|
||||
next;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user