aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/testcurl/test_post.c21
1 files changed, 17 insertions, 4 deletions
diff --git a/src/testcurl/test_post.c b/src/testcurl/test_post.c
index 49074bf3..992f8b8b 100644
--- a/src/testcurl/test_post.c
+++ b/src/testcurl/test_post.c
@@ -597,13 +597,26 @@ testMultithreadedPostCancelPart(int flags)
597 597
598 if (CURLE_HTTP_RETURNED_ERROR != (errornum = curl_easy_perform (c))) 598 if (CURLE_HTTP_RETURNED_ERROR != (errornum = curl_easy_perform (c)))
599 { 599 {
600 fprintf (stderr, 600#ifdef _WIN32
601 "flibbet curl_easy_perform didn't fail as expected: `%s' %d\n", 601 if (0 != (flags & FLAG_SLOW_READ) && CURLE_RECV_ERROR == errornum)
602 curl_easy_strerror (errornum), errornum); 602 {
603 fprintf (stderr, "Ignored curl_easy_perform expected failure on W32 with \"slow read\".\n");
604 result = 0;
605 }
606 else
607#else /* ! _WIN32 */
608 if(1)
609#endif /* ! _WIN32 */
610 {
611 fprintf (stderr,
612 "flibbet curl_easy_perform didn't fail as expected: `%s' %d\n",
613 curl_easy_strerror (errornum), errornum);
614 result = 65536;
615 }
603 curl_easy_cleanup (c); 616 curl_easy_cleanup (c);
604 MHD_stop_daemon (d); 617 MHD_stop_daemon (d);
605 curl_slist_free_all(headers); 618 curl_slist_free_all(headers);
606 return 65536; 619 return result;
607 } 620 }
608 621
609 if (CURLE_OK != (cc = curl_easy_getinfo(c, CURLINFO_RESPONSE_CODE, &response_code))) 622 if (CURLE_OK != (cc = curl_easy_getinfo(c, CURLINFO_RESPONSE_CODE, &response_code)))