commit 67a2d40e514fecaff9580ba7f8c31f160d735db0
parent 661a5ee03c1ff438edd46994653c8a5fa3cd075e
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Tue, 12 Apr 2016 15:01:18 +0000
Testsuite: ignore specific test_post errors on W32 until libcurl will merge workaround
Diffstat:
1 file changed, 17 insertions(+), 4 deletions(-)
diff --git a/src/testcurl/test_post.c b/src/testcurl/test_post.c
@@ -597,13 +597,26 @@ testMultithreadedPostCancelPart(int flags)
if (CURLE_HTTP_RETURNED_ERROR != (errornum = curl_easy_perform (c)))
{
- fprintf (stderr,
- "flibbet curl_easy_perform didn't fail as expected: `%s' %d\n",
- curl_easy_strerror (errornum), errornum);
+#ifdef _WIN32
+ if (0 != (flags & FLAG_SLOW_READ) && CURLE_RECV_ERROR == errornum)
+ {
+ fprintf (stderr, "Ignored curl_easy_perform expected failure on W32 with \"slow read\".\n");
+ result = 0;
+ }
+ else
+#else /* ! _WIN32 */
+ if(1)
+#endif /* ! _WIN32 */
+ {
+ fprintf (stderr,
+ "flibbet curl_easy_perform didn't fail as expected: `%s' %d\n",
+ curl_easy_strerror (errornum), errornum);
+ result = 65536;
+ }
curl_easy_cleanup (c);
MHD_stop_daemon (d);
curl_slist_free_all(headers);
- return 65536;
+ return result;
}
if (CURLE_OK != (cc = curl_easy_getinfo(c, CURLINFO_RESPONSE_CODE, &response_code)))