diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2019-05-26 18:17:32 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2019-05-26 18:17:32 +0300 |
commit | 3894027826cbc6688428d8d54e2debe25b1d0661 (patch) | |
tree | 69c3fa8140a365da5b138aa4519b154e2063c7b8 /src/testzzuf/test_put.c | |
parent | 710d79a2ea4647d73172ba9aa032a4055bea14a8 (diff) | |
download | libmicrohttpd-3894027826cbc6688428d8d54e2debe25b1d0661.tar.gz libmicrohttpd-3894027826cbc6688428d8d54e2debe25b1d0661.zip |
tests: properly setup CURL options
Diffstat (limited to 'src/testzzuf/test_put.c')
-rw-r--r-- | src/testzzuf/test_put.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/testzzuf/test_put.c b/src/testzzuf/test_put.c index 63518ba8..5a237ddd 100644 --- a/src/testzzuf/test_put.c +++ b/src/testzzuf/test_put.c | |||
@@ -146,7 +146,7 @@ testInternalPut () | |||
146 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); | 146 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); |
147 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); | 147 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); |
148 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); | 148 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); |
149 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 149 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
150 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 150 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
151 | if (oneone) | 151 | if (oneone) |
152 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 152 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -156,7 +156,7 @@ testInternalPut () | |||
156 | /* NOTE: use of CONNECTTIMEOUT without also | 156 | /* NOTE: use of CONNECTTIMEOUT without also |
157 | * setting NOSIGNAL results in really weird | 157 | * setting NOSIGNAL results in really weird |
158 | * crashes on my system! */ | 158 | * crashes on my system! */ |
159 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 159 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
160 | curl_easy_perform (c); | 160 | curl_easy_perform (c); |
161 | curl_easy_cleanup (c); | 161 | curl_easy_cleanup (c); |
162 | } | 162 | } |
@@ -197,7 +197,7 @@ testMultithreadedPut () | |||
197 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); | 197 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); |
198 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); | 198 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); |
199 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); | 199 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); |
200 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 200 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
201 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 201 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
202 | if (oneone) | 202 | if (oneone) |
203 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 203 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -207,7 +207,7 @@ testMultithreadedPut () | |||
207 | /* NOTE: use of CONNECTTIMEOUT without also | 207 | /* NOTE: use of CONNECTTIMEOUT without also |
208 | * setting NOSIGNAL results in really weird | 208 | * setting NOSIGNAL results in really weird |
209 | * crashes on my system! */ | 209 | * crashes on my system! */ |
210 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 210 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
211 | curl_easy_perform (c); | 211 | curl_easy_perform (c); |
212 | curl_easy_cleanup (c); | 212 | curl_easy_cleanup (c); |
213 | } | 213 | } |
@@ -266,7 +266,7 @@ testExternalPut () | |||
266 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); | 266 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); |
267 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); | 267 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); |
268 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); | 268 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); |
269 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 269 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
270 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 270 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
271 | if (oneone) | 271 | if (oneone) |
272 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 272 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -276,7 +276,7 @@ testExternalPut () | |||
276 | /* NOTE: use of CONNECTTIMEOUT without also | 276 | /* NOTE: use of CONNECTTIMEOUT without also |
277 | * setting NOSIGNAL results in really weird | 277 | * setting NOSIGNAL results in really weird |
278 | * crashes on my system! */ | 278 | * crashes on my system! */ |
279 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 279 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
280 | 280 | ||
281 | 281 | ||
282 | 282 | ||