gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r37087 - branches/mhd-0.9.50/src/testcurl


From: gnunet
Subject: [GNUnet-SVN] r37087 - branches/mhd-0.9.50/src/testcurl
Date: Fri, 29 Apr 2016 23:14:08 +0200

Author: Karlson2k
Date: 2016-04-29 23:14:08 +0200 (Fri, 29 Apr 2016)
New Revision: 37087

Modified:
   branches/mhd-0.9.50/src/testcurl/test_post.c
Log:
Testsuite: ignore specific test_post errors on W32 until libcurl will merge 
workaround

Modified: branches/mhd-0.9.50/src/testcurl/test_post.c
===================================================================
--- branches/mhd-0.9.50/src/testcurl/test_post.c        2016-04-29 21:14:05 UTC 
(rev 37086)
+++ branches/mhd-0.9.50/src/testcurl/test_post.c        2016-04-29 21:14:08 UTC 
(rev 37087)
@@ -597,13 +597,26 @@
   
   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)))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]