diff options
Diffstat (limited to 'tests/libtest/lib519.c')
-rw-r--r-- | tests/libtest/lib519.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/libtest/lib519.c b/tests/libtest/lib519.c index 70ada8a15..66013498b 100644 --- a/tests/libtest/lib519.c +++ b/tests/libtest/lib519.c @@ -28,19 +28,21 @@ int test(char *URL) return TEST_ERR_MAJOR_BAD; } - curl_easy_setopt(curl, CURLOPT_URL, URL); - curl_easy_setopt(curl, CURLOPT_USERPWD, "monster:underbed"); - curl_easy_setopt(curl, CURLOPT_HEADER, 1L); - curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); + test_setopt(curl, CURLOPT_URL, URL); + test_setopt(curl, CURLOPT_USERPWD, "monster:underbed"); + test_setopt(curl, CURLOPT_HEADER, 1L); + test_setopt(curl, CURLOPT_VERBOSE, 1L); /* get first page */ res = curl_easy_perform(curl); - curl_easy_setopt(curl, CURLOPT_USERPWD, "anothermonster:inwardrobe"); + test_setopt(curl, CURLOPT_USERPWD, "anothermonster:inwardrobe"); /* get second page */ res = curl_easy_perform(curl); +test_cleanup: + curl_easy_cleanup(curl); curl_global_cleanup(); |