components/curl/patches/010-fix-tests.patch
branchs11-update
changeset 4103 0a3f0d2f2c86
child 5315 cbd548550bd1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/curl/patches/010-fix-tests.patch	Fri Apr 10 16:50:24 2015 -0700
@@ -0,0 +1,41 @@
+Adjust the Python http_pipe.py script to work with our default version of
+Python.
+
+This change will be sent back up stream for consideration.
+
+--- tests/http_pipe.py.orig	2014-09-10 15:59:26.498743943 -0700
++++ tests/http_pipe.py	2014-09-10 15:58:59.502589711 -0700
+@@ -435,7 +435,7 @@
+ if args.pidfile:
+     pid = os.getpid()
+     f = open(args.pidfile, 'w')
+-    f.write('{}'.format(pid))
++    f.write('{0}'.format(pid))
+     f.close()
+ 
+ server = PipelineServer(('0.0.0.0', args.port), PipelineRequestHandler)
+
+
+# ----------------------------------------------------------------------------
+Tests #530 and #584 fail with curl version 7.40.0. This is discussed at:
+
+  http://curl.haxx.se/mail/lib-2014-08/0161.html
+
+with the patch at:
+
+http://curl.haxx.se/mail/lib-2014-06/att-0139/0001-Delay-Curl_addHandleToPipeline-by-a-milisecond.patch
+
+addressing the problem.
+
+Upstream is already aware of this issue.
+
+--- lib/url.c.orig	2015-01-26 13:49:21.041657976 -0800
++++ lib//url.c	2015-01-26 13:50:45.391515086 -0800
+@@ -2748,6 +2748,7 @@
+ {
+   if(!Curl_llist_insert_next(pipeline, pipeline->tail, data))
+     return CURLE_OUT_OF_MEMORY;
++  Curl_wait_ms(1);
+   return CURLE_OK;
+ }
+