From: Bruno Haible Date: Mon, 3 Oct 2011 14:15:47 +0000 (+0200) Subject: nonblocking tests: Fix test failure on OpenBSD/SPARC64. X-Git-Tag: v0.1~1711 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=f8454dc9e024dbae12ce6339cca5a13e390ed6ea;p=gnulib.git nonblocking tests: Fix test failure on OpenBSD/SPARC64. * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]: Set to 100000. --- diff --git a/ChangeLog b/ChangeLog index a12450ef3..7f9e391f6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2011-10-03 Bruno Haible + 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 + acl: Fix specification. * lib/file-has-acl.c (file_has_acl): Fix specification. diff --git a/tests/test-nonblocking-socket.h b/tests/test-nonblocking-socket.h index 5f2268d9c..944ecb16b 100644 --- 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