diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-04-14 06:30:37 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-04-14 06:30:37 +0000 |
commit | aba6c2b89d96f661c2b4d77fc925b47921008e3d (patch) | |
tree | cfba0ca73a324d4b83960e849c8f9aa0fcb3de8a /tests/libtest/lib511.c | |
parent | 9c0a386246f2fc073419425a231c9a58cee77952 (diff) | |
download | curl-aba6c2b89d96f661c2b4d77fc925b47921008e3d.tar.gz |
Added test case 511 in an attempt to repeat bug report #934666 "storage leak
in ftp.c", but it shows no leaking.
Diffstat (limited to 'tests/libtest/lib511.c')
-rw-r--r-- | tests/libtest/lib511.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/libtest/lib511.c b/tests/libtest/lib511.c new file mode 100644 index 000000000..9b9980a71 --- /dev/null +++ b/tests/libtest/lib511.c @@ -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; +} + |