diff options
Diffstat (limited to 'tests/unit/unit1303.c')
| -rw-r--r-- | tests/unit/unit1303.c | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/tests/unit/unit1303.c b/tests/unit/unit1303.c index 143ccd034..13fb0e05c 100644 --- a/tests/unit/unit1303.c +++ b/tests/unit/unit1303.c @@ -29,15 +29,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();  }  /* BASE is just a define to make us fool around with decently large number so | 
