aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2017-08-26 22:01:42 +0200
committerDan Fandrich <dan@coneharvesters.com>2017-08-26 22:01:42 +0200
commitd7d0c9d9538df7f78b83cc91da8ec96c7d160f6a (patch)
tree8a302768da4e8b46ae08f6ff796d95c9c3a8c3c5 /tests/libtest
parent09fc61e43607c4131475b0d31f41dd173d490b24 (diff)
tests: Make sure libtests & unittests call curl_global_cleanup()
These were missed in commit c468c27b.
Diffstat (limited to 'tests/libtest')
-rw-r--r--tests/libtest/lib1515.c1
-rw-r--r--tests/libtest/mk-lib1521.pl2
2 files changed, 3 insertions, 0 deletions
diff --git a/tests/libtest/lib1515.c b/tests/libtest/lib1515.c
index c1499381a..4b41dc2e4 100644
--- a/tests/libtest/lib1515.c
+++ b/tests/libtest/lib1515.c
@@ -148,6 +148,7 @@ int test(char *URL)
test_cleanup:
curl_multi_cleanup(multi);
+ curl_global_cleanup();
return (int) res;
}
diff --git a/tests/libtest/mk-lib1521.pl b/tests/libtest/mk-lib1521.pl
index e60bce5cc..f5c68eb10 100644
--- a/tests/libtest/mk-lib1521.pl
+++ b/tests/libtest/mk-lib1521.pl
@@ -157,6 +157,7 @@ int test(char *URL)
struct curl_tlssessioninfo *tlssession;
CURLcode res = CURLE_OK;
(void)URL; /* not used */
+ global_init(CURL_GLOBAL_ALL);
easy_init(dep);
easy_init(curl);
share = curl_share_init();
@@ -296,6 +297,7 @@ test_cleanup:
curl_easy_cleanup(curl);
curl_easy_cleanup(dep);
curl_share_cleanup(share);
+ curl_global_cleanup();
return (int)res;
}