]> Savannah Git Hosting - gnulib.git/commitdiff
nonblocking-socket-tests: Fix test failure on Android 4.3.
authorBruno Haible <bruno@clisp.org>
Sat, 26 Jan 2019 17:55:39 +0000 (18:55 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 26 Jan 2019 17:55:39 +0000 (18:55 +0100)
* tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
also on Android.

ChangeLog
tests/test-nonblocking-socket.h

index bf405663ec4886481346d7bd7ca21dc78dcb93bb..2712e65d711910a1ea8cc63063dfd340d3cfe943 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2019-01-26  Bruno Haible  <bruno@clisp.org>
+
+       nonblocking-socket-tests: Fix test failure on Android 4.3.
+       * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
+       also on Android.
+
 2019-01-26  Bruno Haible  <bruno@clisp.org>
 
        sh-filename: Add support for Android 4.3.
index f0493006db8c50cb1bb8cb225ddd7f1ce8b918b8..c3f9f54e5bceed953a36d70df1c39c4462f2bf5c 100644 (file)
@@ -21,6 +21,7 @@
      Platform                        SOCKET_DATA_BLOCK_SIZE
 
      Linux                           >= 7350000 (depends on circumstances)
+     Linux/Android                   >= 1700000 (approx.)
      FreeBSD                         >= 107521
      OpenBSD                         >= 106430 (depends on circumstances)
      Mac OS X                        >= 680000 (depends on circumstances)
@@ -44,7 +45,7 @@
    sockets have very large buffers in the kernel, so that write() calls
    succeed before the reader has started reading, even if fd is blocking
    and the amount of data is larger than 1 MB.  */
-#if defined __linux__ || (defined __APPLE__ && defined __MACH__) || defined _WIN32 || defined __CYGWIN__
+#if defined __linux__ || defined __ANDROID__ || (defined __APPLE__ && defined __MACH__) || defined _WIN32 || defined __CYGWIN__
 # define SOCKET_HAS_LARGE_BUFFER 1
 #else
 # define SOCKET_HAS_LARGE_BUFFER 0