changeset 15802:2f532a2411eb

nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit). * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]: Set to 140000.
author Bruno Haible <bruno@clisp.org>
date Fri, 30 Sep 2011 17:44:22 +0200
parents 3002f394d1fe
children ec6332cd8838
files ChangeLog tests/test-nonblocking-pipe.h
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-09-30  Bruno Haible  <bruno@clisp.org>
+
+	nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
+	* tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
+	Set to 140000.
+
 2011-09-30  Bruno Haible  <bruno@clisp.org>
 
 	gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
--- a/tests/test-nonblocking-pipe.h
+++ b/tests/test-nonblocking-pipe.h
@@ -21,6 +21,7 @@
      Platform                        PIPE_DATA_BLOCK_SIZE
 
      Linux                           >= 63489
+     Linux/SPARC                     >= 126977
      FreeBSD, OpenBSD, MacOS X       >= 65537
      AIX                             >= 32769
      HP-UX                           >= 8193
@@ -33,6 +34,8 @@
  */
 #if defined __osf__
 # define PIPE_DATA_BLOCK_SIZE 270000
+#elif defined __linux__ && defined __sparc__
+# define PIPE_DATA_BLOCK_SIZE 140000
 #else
 # define PIPE_DATA_BLOCK_SIZE 70000
 #endif