diff options
Diffstat (limited to 'tests/libtest/lib511.c')
-rw-r--r-- | tests/libtest/lib511.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/libtest/lib511.c b/tests/libtest/lib511.c index 0f9993db1..0e2f3df10 100644 --- a/tests/libtest/lib511.c +++ b/tests/libtest/lib511.c @@ -28,13 +28,15 @@ int test(char *URL) return TEST_ERR_MAJOR_BAD; } - curl_easy_setopt(curl, CURLOPT_URL, URL); - curl_easy_setopt(curl, CURLOPT_FILETIME, 1L); - curl_easy_setopt(curl, CURLOPT_NOBODY, 1L); - curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); + test_setopt(curl, CURLOPT_URL, URL); + test_setopt(curl, CURLOPT_FILETIME, 1L); + test_setopt(curl, CURLOPT_NOBODY, 1L); + test_setopt(curl, CURLOPT_VERBOSE, 1L); res = curl_easy_perform(curl); +test_cleanup: + curl_easy_cleanup(curl); curl_global_cleanup(); |