]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests: disable .curlrc in more environments
authorViktor Szakats <commit@vsz.me>
Thu, 11 Feb 2021 22:06:02 +0000 (22:06 +0000)
committerViktor Szakats <commit@vsz.me>
Thu, 11 Feb 2021 22:06:02 +0000 (22:06 +0000)
by also setting CURL_HOME and XDG_CONFIG_HOME envvars to the local
directory.

Reviewed-by: Daniel Stenberg
Fixes #6595
Closes #6596

tests/runtests.pl

index ddee02ad36ea403c1628ed60aeb82baf0f40a517..47b44acb6c99f3bbdbacd0825bf91ecf7429ab60 100755 (executable)
@@ -388,6 +388,8 @@ $ENV{'CURL_ENTROPY'}="12345678";
 $ENV{'CURL_FORCETIME'}=1; # for debug NTLM magic
 $ENV{'CURL_GLOBAL_INIT'}=1; # debug curl_global_init/cleanup use
 $ENV{'HOME'}=$pwd;
+$ENV{'CURL_HOME'}=$ENV{'HOME'};
+$ENV{'XDG_CONFIG_HOME'}=$ENV{'HOME'};
 $ENV{'COLUMNS'}=79; # screen width!
 
 sub catch_zap {