diff tests/test-nonblocking-socket.h @ 15815:22c19cdc7906

nonblocking tests: Fix test failure on OpenBSD/SPARC64. * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]: Set to 100000.
author Bruno Haible <bruno@clisp.org>
date Mon, 03 Oct 2011 16:15:47 +0200 (2011-10-03)
parents e0d0a4052520
children 8250f2777afc
line wrap: on
line diff
--- a/tests/test-nonblocking-socket.h
+++ b/tests/test-nonblocking-socket.h
@@ -38,7 +38,11 @@
      Cygwin 1.7.x                    >= 163838 (depends on circumstances)
      native Win32                    >= 66294401
  */
-#define SOCKET_DATA_BLOCK_SIZE 1000000
+#if defined __OpenBSD__
+# define SOCKET_DATA_BLOCK_SIZE  100000
+#else
+# define SOCKET_DATA_BLOCK_SIZE 1000000
+#endif
 
 /* On Linux, MacOS X, Cygwin 1.5.x, native Win32,
    sockets have very large buffers in the kernel, so that write() calls