Added test case 511 in an attempt to repeat bug report #934666 "storage leak

in ftp.c", but it shows no leaking.
This commit is contained in:
Daniel Stenberg
2004-04-14 06:30:37 +00:00
parent 9c0a386246
commit aba6c2b89d
4 changed files with 57 additions and 3 deletions

14
tests/libtest/lib511.c Normal file
View File

@@ -0,0 +1,14 @@
#include "test.h"
int test(char *URL)
{
CURLcode res;
CURL *curl = curl_easy_init();
curl_easy_setopt(curl, CURLOPT_URL, URL);
curl_easy_setopt(curl, CURLOPT_FILETIME, 1);
curl_easy_setopt(curl, CURLOPT_NOBODY, 1);
res = curl_easy_perform(curl);
curl_easy_cleanup(curl);
return (int)res;
}