aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_large_put.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/test_large_put.c')
-rw-r--r--src/testcurl/test_large_put.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/testcurl/test_large_put.c b/src/testcurl/test_large_put.c
index f4c767cc..352a1732 100644
--- a/src/testcurl/test_large_put.c
+++ b/src/testcurl/test_large_put.c
@@ -223,7 +223,7 @@ testPutInternalThread (unsigned int add_flag)
223 curl_easy_setopt (c, CURLOPT_READDATA, &pos); 223 curl_easy_setopt (c, CURLOPT_READDATA, &pos);
224 curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); 224 curl_easy_setopt (c, CURLOPT_UPLOAD, 1L);
225 curl_easy_setopt (c, CURLOPT_INFILESIZE, (long) PUT_SIZE); 225 curl_easy_setopt (c, CURLOPT_INFILESIZE, (long) PUT_SIZE);
226 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); 226 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L);
227 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); 227 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L);
228 if (oneone) 228 if (oneone)
229 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); 229 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
@@ -233,7 +233,7 @@ testPutInternalThread (unsigned int add_flag)
233 /* NOTE: use of CONNECTTIMEOUT without also 233 /* NOTE: use of CONNECTTIMEOUT without also
234 * setting NOSIGNAL results in really weird 234 * setting NOSIGNAL results in really weird
235 * crashes on my system! */ 235 * crashes on my system! */
236 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); 236 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L);
237 if (CURLE_OK != (errornum = curl_easy_perform (c))) 237 if (CURLE_OK != (errornum = curl_easy_perform (c)))
238 { 238 {
239 fprintf (stderr, 239 fprintf (stderr,
@@ -303,7 +303,7 @@ testPutThreadPerConn (unsigned int add_flag)
303 curl_easy_setopt (c, CURLOPT_READDATA, &pos); 303 curl_easy_setopt (c, CURLOPT_READDATA, &pos);
304 curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); 304 curl_easy_setopt (c, CURLOPT_UPLOAD, 1L);
305 curl_easy_setopt (c, CURLOPT_INFILESIZE, (long) PUT_SIZE); 305 curl_easy_setopt (c, CURLOPT_INFILESIZE, (long) PUT_SIZE);
306 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); 306 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L);
307 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); 307 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L);
308 if (oneone) 308 if (oneone)
309 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); 309 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
@@ -313,7 +313,7 @@ testPutThreadPerConn (unsigned int add_flag)
313 /* NOTE: use of CONNECTTIMEOUT without also 313 /* NOTE: use of CONNECTTIMEOUT without also
314 * setting NOSIGNAL results in really weird 314 * setting NOSIGNAL results in really weird
315 * crashes on my system! */ 315 * crashes on my system! */
316 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); 316 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L);
317 if (CURLE_OK != (errornum = curl_easy_perform (c))) 317 if (CURLE_OK != (errornum = curl_easy_perform (c)))
318 { 318 {
319 fprintf (stderr, 319 fprintf (stderr,
@@ -386,7 +386,7 @@ testPutThreadPool (unsigned int add_flag)
386 curl_easy_setopt (c, CURLOPT_READDATA, &pos); 386 curl_easy_setopt (c, CURLOPT_READDATA, &pos);
387 curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); 387 curl_easy_setopt (c, CURLOPT_UPLOAD, 1L);
388 curl_easy_setopt (c, CURLOPT_INFILESIZE, (long) PUT_SIZE); 388 curl_easy_setopt (c, CURLOPT_INFILESIZE, (long) PUT_SIZE);
389 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); 389 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L);
390 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); 390 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L);
391 if (oneone) 391 if (oneone)
392 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); 392 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
@@ -396,7 +396,7 @@ testPutThreadPool (unsigned int add_flag)
396 /* NOTE: use of CONNECTTIMEOUT without also 396 /* NOTE: use of CONNECTTIMEOUT without also
397 * setting NOSIGNAL results in really weird 397 * setting NOSIGNAL results in really weird
398 * crashes on my system! */ 398 * crashes on my system! */
399 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); 399 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L);
400 if (CURLE_OK != (errornum = curl_easy_perform (c))) 400 if (CURLE_OK != (errornum = curl_easy_perform (c)))
401 { 401 {
402 fprintf (stderr, 402 fprintf (stderr,
@@ -483,7 +483,7 @@ testPutExternal (void)
483 curl_easy_setopt (c, CURLOPT_READDATA, &pos); 483 curl_easy_setopt (c, CURLOPT_READDATA, &pos);
484 curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); 484 curl_easy_setopt (c, CURLOPT_UPLOAD, 1L);
485 curl_easy_setopt (c, CURLOPT_INFILESIZE, (long) PUT_SIZE); 485 curl_easy_setopt (c, CURLOPT_INFILESIZE, (long) PUT_SIZE);
486 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); 486 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L);
487 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); 487 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L);
488 if (oneone) 488 if (oneone)
489 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); 489 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
@@ -493,7 +493,7 @@ testPutExternal (void)
493 /* NOTE: use of CONNECTTIMEOUT without also 493 /* NOTE: use of CONNECTTIMEOUT without also
494 * setting NOSIGNAL results in really weird 494 * setting NOSIGNAL results in really weird
495 * crashes on my system! */ 495 * crashes on my system! */
496 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); 496 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L);
497 497
498 498
499 multi = curl_multi_init (); 499 multi = curl_multi_init ();