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:
Julien Chaffraix
2011-02-08 08:39:44 -08:00
parent 39d0d787d2
commit 311bd4c7b1
3 changed files with 15 additions and 14 deletions

View File

@@ -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;
}