aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_post.c
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2016-04-12 15:01:18 +0000
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2016-04-12 15:01:18 +0000
commit67a2d40e514fecaff9580ba7f8c31f160d735db0 (patch)
treedd0afdf0a815ea1451ac59502fa0d15634dfb3ed /src/testcurl/test_post.c
parent661a5ee03c1ff438edd46994653c8a5fa3cd075e (diff)
downloadlibmicrohttpd-67a2d40e514fecaff9580ba7f8c31f160d735db0.tar.gz
libmicrohttpd-67a2d40e514fecaff9580ba7f8c31f160d735db0.zip
Testsuite: ignore specific test_post errors on W32 until libcurl will merge workaround
Diffstat (limited to 'src/testcurl/test_post.c')
-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)))