aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libtest')
-rw-r--r--tests/libtest/lib505.c2
-rw-r--r--tests/libtest/lib508.c2
-rw-r--r--tests/libtest/lib510.c2
-rw-r--r--tests/libtest/lib513.c2
-rw-r--r--tests/libtest/lib541.c2
-rw-r--r--tests/libtest/lib579.c2
6 files changed, 6 insertions, 6 deletions
diff --git a/tests/libtest/lib505.c b/tests/libtest/lib505.c
index e9e20a879..9592e0fa9 100644
--- a/tests/libtest/lib505.c
+++ b/tests/libtest/lib505.c
@@ -126,7 +126,7 @@ int test(char *URL)
test_setopt(curl, CURLOPT_POSTQUOTE, headerlist);
/* now specify which file to upload */
- test_setopt(curl, CURLOPT_INFILE, hd_src);
+ test_setopt(curl, CURLOPT_READDATA, hd_src);
/* and give the size of the upload (optional) */
test_setopt(curl, CURLOPT_INFILESIZE_LARGE,
diff --git a/tests/libtest/lib508.c b/tests/libtest/lib508.c
index 1aca064e9..7f3730920 100644
--- a/tests/libtest/lib508.c
+++ b/tests/libtest/lib508.c
@@ -86,7 +86,7 @@ int test(char *URL)
test_setopt(curl, CURLOPT_READFUNCTION, read_callback);
/* pointer to pass to our read function */
- test_setopt(curl, CURLOPT_INFILE, &pooh);
+ test_setopt(curl, CURLOPT_READDATA, &pooh);
/* get verbose debug output please */
test_setopt(curl, CURLOPT_VERBOSE, 1L);
diff --git a/tests/libtest/lib510.c b/tests/libtest/lib510.c
index 8278631c1..c60b2caf6 100644
--- a/tests/libtest/lib510.c
+++ b/tests/libtest/lib510.c
@@ -97,7 +97,7 @@ int test(char *URL)
test_setopt(curl, CURLOPT_READFUNCTION, read_callback);
/* pointer to pass to our read function */
- test_setopt(curl, CURLOPT_INFILE, &pooh);
+ test_setopt(curl, CURLOPT_READDATA, &pooh);
/* get verbose debug output please */
test_setopt(curl, CURLOPT_VERBOSE, 1L);
diff --git a/tests/libtest/lib513.c b/tests/libtest/lib513.c
index c013ac258..7aab3b1c8 100644
--- a/tests/libtest/lib513.c
+++ b/tests/libtest/lib513.c
@@ -61,7 +61,7 @@ int test(char *URL)
test_setopt(curl, CURLOPT_READFUNCTION, read_callback);
/* pointer to pass to our read function */
- test_setopt(curl, CURLOPT_INFILE, NULL);
+ test_setopt(curl, CURLOPT_READDATA, NULL);
/* get verbose debug output please */
test_setopt(curl, CURLOPT_VERBOSE, 1L);
diff --git a/tests/libtest/lib541.c b/tests/libtest/lib541.c
index 3318b9b8b..6015d2f06 100644
--- a/tests/libtest/lib541.c
+++ b/tests/libtest/lib541.c
@@ -96,7 +96,7 @@ int test(char *URL)
test_setopt(curl,CURLOPT_URL, URL);
/* now specify which file to upload */
- test_setopt(curl, CURLOPT_INFILE, hd_src);
+ test_setopt(curl, CURLOPT_READDATA, hd_src);
/* Now run off and do what you've been told! */
res = curl_easy_perform(curl);
diff --git a/tests/libtest/lib579.c b/tests/libtest/lib579.c
index c5cf603bb..0e8bd2f15 100644
--- a/tests/libtest/lib579.c
+++ b/tests/libtest/lib579.c
@@ -126,7 +126,7 @@ int test(char *URL)
test_setopt(curl, CURLOPT_READFUNCTION, read_callback);
/* pointer to pass to our read function */
- test_setopt(curl, CURLOPT_INFILE, &pooh);
+ test_setopt(curl, CURLOPT_READDATA, &pooh);
/* get verbose debug output please */
test_setopt(curl, CURLOPT_VERBOSE, 1L);