summaryrefslogtreecommitdiff
path: root/tests/runtests.pl
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-01-05 00:03:57 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-01-06 15:13:45 +0100
commit9d7281ff1787d83e8e96bb3fc9441ae4cba0cd08 (patch)
tree67331fe69c52cbdc502e6cc24a003c19f9556a32 /tests/runtests.pl
parent75f7ab28d20ba0d099e23568109f3f3e6cd95d1b (diff)
downloadcurl-9d7281ff1787d83e8e96bb3fc9441ae4cba0cd08.tar.gz
global_init: debug builds allocates a byte in init
... to make build tools/valgrind warn if no curl_global_cleanup is called. This is conditionally only done for debug builds with the env variable CURL_GLOBAL_INIT set. Closes #6410
Diffstat (limited to 'tests/runtests.pl')
-rwxr-xr-xtests/runtests.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index 6c5edc84d..0e0e26c3c 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -381,6 +381,7 @@ if (!$USER) {
$ENV{'CURL_MEMDEBUG'} = $memdump;
$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{'COLUMNS'}=79; # screen width!