aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/unit1302.c
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/unit/unit1302.c
parent09fc61e43607c4131475b0d31f41dd173d490b24 (diff)
tests: Make sure libtests & unittests call curl_global_cleanup()
These were missed in commit c468c27b.
Diffstat (limited to 'tests/unit/unit1302.c')
-rw-r--r--tests/unit/unit1302.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/unit/unit1302.c b/tests/unit/unit1302.c
index 8dae5aad1..e6f94b24e 100644
--- a/tests/unit/unit1302.c
+++ b/tests/unit/unit1302.c
@@ -30,15 +30,19 @@ static struct Curl_easy *data;
static CURLcode unit_setup(void)
{
+ int res = CURLE_OK;
+
+ global_init(CURL_GLOBAL_ALL);
data = curl_easy_init();
if(!data)
return CURLE_OUT_OF_MEMORY;
- return CURLE_OK;
+ return res;
}
static void unit_stop(void)
{
curl_easy_cleanup(data);
+ curl_global_cleanup();
}
UNITTEST_START