From: Bruno Haible Date: Wed, 16 Aug 2017 09:04:30 +0000 (+0200) Subject: nonblocking-socket tests: Fix failure on OpenBSD 6.0. X-Git-Tag: v1.0~5997 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=47f5e07e36f52d512411d8908f74fbe6e27cd641;p=gnulib.git nonblocking-socket tests: Fix failure on OpenBSD 6.0. * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase value for OpenBSD. --- diff --git a/ChangeLog b/ChangeLog index 223dfd87db..227a698767 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2017-08-16 Bruno Haible + + nonblocking-socket tests: Fix failure on OpenBSD 6.0. + * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase + value for OpenBSD. + 2017-08-16 Bruno Haible rename, renameat: Update doc regarding NetBSD. diff --git a/tests/test-nonblocking-socket.h b/tests/test-nonblocking-socket.h index 2c0a1d3595..837d4ef0fe 100644 --- a/tests/test-nonblocking-socket.h +++ b/tests/test-nonblocking-socket.h @@ -22,7 +22,7 @@ Linux >= 7350000 (depends on circumstances) FreeBSD >= 107521 - OpenBSD >= 28673 + OpenBSD >= 106430 (depends on circumstances) Mac OS X >= 680000 (depends on circumstances) AIX 5.1 >= 125713 AIX 7.1 >= 200000 (depends on circumstances) @@ -38,11 +38,7 @@ Cygwin 1.7.x >= 163838 (depends on circumstances) native Windows >= 66294401 */ -#if defined __OpenBSD__ -# define SOCKET_DATA_BLOCK_SIZE 100000 -#else -# define SOCKET_DATA_BLOCK_SIZE 1000000 -#endif +#define SOCKET_DATA_BLOCK_SIZE 1000000 /* On Linux, Mac OS X, Cygwin 1.5.x, native Windows, sockets have very large buffers in the kernel, so that write() calls