gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 87/125: test1554: add global initialization and cle


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 87/125: test1554: add global initialization and cleanup
Date: Sun, 21 Jan 2018 23:42:22 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit 593dcc553a096a7f773d3ade217335f3dfe0eee2
Author: Michael Kaufmann <address@hidden>
AuthorDate: Sat Dec 30 16:42:57 2017 +0100

    test1554: add global initialization and cleanup
---
 tests/libtest/lib1554.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tests/libtest/lib1554.c b/tests/libtest/lib1554.c
index aa4aeb732..35dbf2c1e 100644
--- a/tests/libtest/lib1554.c
+++ b/tests/libtest/lib1554.c
@@ -44,10 +44,12 @@ static void my_unlock(CURL *handle, curl_lock_data data, 
void *useptr)
 int test(char *URL)
 {
   CURL *curl;
-  CURLcode res;
+  CURLcode res = CURLE_OK;
   CURLSH *share;
   int i;
 
+  global_init(CURL_GLOBAL_ALL);
+
   share = curl_share_init();
   curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_CONNECT);
   curl_share_setopt(share, CURLSHOPT_LOCKFUNC, my_lock);
@@ -77,5 +79,7 @@ int test(char *URL)
   }
 
   curl_share_cleanup(share);
+  curl_global_cleanup();
+
   return 0;
 }

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]