aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest/lib542.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libtest/lib542.c')
-rw-r--r--tests/libtest/lib542.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/libtest/lib542.c b/tests/libtest/lib542.c
index 9f755c9af..585c18b3c 100644
--- a/tests/libtest/lib542.c
+++ b/tests/libtest/lib542.c
@@ -51,20 +51,22 @@ int test(char *URL)
}
/* enable verbose */
- curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
+ test_setopt(curl, CURLOPT_VERBOSE, 1L);
/* enable NOBODY */
- curl_easy_setopt(curl, CURLOPT_NOBODY, 1L);
+ test_setopt(curl, CURLOPT_NOBODY, 1L);
/* disable HEADER */
- curl_easy_setopt(curl, CURLOPT_HEADER, 0L);
+ test_setopt(curl, CURLOPT_HEADER, 0L);
/* specify target */
- curl_easy_setopt(curl,CURLOPT_URL, URL);
+ test_setopt(curl,CURLOPT_URL, URL);
/* Now run off and do what you've been told! */
res = curl_easy_perform(curl);
+test_cleanup:
+
curl_easy_cleanup(curl);
curl_global_cleanup();