projects
/
curl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc83126
)
test1554: add global initialization and cleanup
author
Michael Kaufmann
<mail@michael-kaufmann.ch>
Sat, 30 Dec 2017 15:42:57 +0000
(16:42 +0100)
committer
Michael Kaufmann
<mail@michael-kaufmann.ch>
Sat, 30 Dec 2017 15:43:50 +0000
(16:43 +0100)
tests/libtest/lib1554.c
patch
|
blob
|
history
diff --git
a/tests/libtest/lib1554.c
b/tests/libtest/lib1554.c
index aa4aeb7321cd56db6000c54848e7d6cd0fea9968..35dbf2c1e6f8742f131ef80d0c88bf5c5b104b98 100644
(file)
--- 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;
}