changeset 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
parents 625d9f3201d8
children db340f34e324
files ChangeLog tests/test-nonblocking-socket.h
diffstat 2 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
--- 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