aboutsummaryrefslogtreecommitdiff
path: root/tests/runtests.pl
diff options
context:
space:
mode:
authorJulien Chaffraix <julien.chaffraix@gmail.com>2011-02-08 08:39:44 -0800
committerJulien Chaffraix <julien.chaffraix@gmail.com>2011-02-10 07:38:48 -0800
commit311bd4c7b10534830c9b9ab062c10d06f57ecb68 (patch)
tree6951c9ba6471109f5ace3af5f5031782f9c12d2c /tests/runtests.pl
parent39d0d787d20b29ed57b10477340c7d000041d31d (diff)
netrc: Enable setting up the filename in unit tests.
Unset the environment variable so that we can specify different filenames in the unit test.
Diffstat (limited to 'tests/runtests.pl')
-rwxr-xr-xtests/runtests.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index 8d0ff481f..e37241523 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -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;
}