aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-10-16 23:58:59 +0200
committerDaniel Stenberg <daniel@haxx.se>2014-11-05 08:05:14 +0100
commitd997c8b2f6521d78c6ef63411cfeb226f7927281 (patch)
tree2107095b1711cd7699a15c2a8c0d14bd819aa4b7 /tests/libtest
parent445aab4b7339494e7abce394b4c5cd788df31634 (diff)
lib544.c: use duphandle for test 545
To verify that curl_easy_duphandle() works fine on a handle that has gotten data stored with *_COPYPOSTFIELDS.
Diffstat (limited to 'tests/libtest')
-rw-r--r--tests/libtest/lib544.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/libtest/lib544.c b/tests/libtest/lib544.c
index 4a4e4f223..7e2f73518 100644
--- a/tests/libtest/lib544.c
+++ b/tests/libtest/lib544.c
@@ -68,6 +68,16 @@ int test(char *URL)
/* Update the original data to detect non-copy. */
strcpy(teststring, "FAIL");
+#ifdef LIB545
+ {
+ CURL *handle2;
+ handle2 = curl_easy_duphandle(curl);
+ curl_easy_cleanup(curl);
+
+ curl = handle2;
+ }
+#endif
+
/* Now, this is a POST request with binary 0 embedded in POST data. */
res = curl_easy_perform(curl);