nonblocking tests: Fix test failure on OpenBSD/SPARC64.
authorBruno Haible <bruno@clisp.org>
Mon, 3 Oct 2011 14:15:47 +0000 (16:15 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 3 Oct 2011 14:15:47 +0000 (16:15 +0200)
* tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
Set to 100000.

ChangeLog
tests/test-nonblocking-socket.h

index a12450e..7f9e391 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2011-10-03  Bruno Haible  <bruno@clisp.org>
 
+       nonblocking tests: Fix test failure on OpenBSD/SPARC64.
+       * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
+       Set to 100000.
+
+2011-10-03  Bruno Haible  <bruno@clisp.org>
+
        acl: Fix specification.
        * lib/file-has-acl.c (file_has_acl): Fix specification.
 
index 5f2268d..944ecb1 100644 (file)
      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