diff options
Diffstat (limited to 'tests/libtest/lib516.c')
-rw-r--r-- | tests/libtest/lib516.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/libtest/lib516.c b/tests/libtest/lib516.c index b3c63f4b5..8721583cf 100644 --- a/tests/libtest/lib516.c +++ b/tests/libtest/lib516.c @@ -29,14 +29,16 @@ int test(char *URL) } /* First set the URL that is about to receive our POST. */ - curl_easy_setopt(curl, CURLOPT_URL, URL); - curl_easy_setopt(curl, CURLOPT_HTTPPOST, NULL); - curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); /* show verbose for debug */ - curl_easy_setopt(curl, CURLOPT_HEADER, 1L); /* include header */ + test_setopt(curl, CURLOPT_URL, URL); + test_setopt(curl, CURLOPT_HTTPPOST, NULL); + test_setopt(curl, CURLOPT_VERBOSE, 1L); /* show verbose for debug */ + test_setopt(curl, CURLOPT_HEADER, 1L); /* include header */ /* Now, we should be making a zero byte POST request */ res = curl_easy_perform(curl); +test_cleanup: + /* always cleanup */ curl_easy_cleanup(curl); curl_global_cleanup(); |