]> Savannah Git Hosting - gnulib.git/commitdiff
nonblocking-pipe tests: Fix test failure on MSVC.
authorBruno Haible <bruno@clisp.org>
Tue, 2 Jul 2019 17:59:28 +0000 (19:59 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 2 Jul 2019 17:59:28 +0000 (19:59 +0200)
* tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
native Windows.

ChangeLog
tests/test-nonblocking-pipe.h

index 3c5f0a325f25dec42a6b2dc875365161dcde4c2f..706fe6a771896f2cf3b359b911aa7a0fbd9dae9e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2019-07-02  Bruno Haible  <bruno@clisp.org>
+
+       nonblocking-pipe tests: Fix test failure on MSVC.
+       * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
+       native Windows.
+
 2019-07-02  Bruno Haible  <bruno@clisp.org>
 
        usleep: Implement with millisecond resolution on native Windows.
index fd101c5e7ec1fdb2147b65ac9d761f7a68ae2f92..7edb64e4966664c32659c5c0b1a01342376bbdcd 100644 (file)
@@ -41,6 +41,8 @@
 # define PIPE_DATA_BLOCK_SIZE 140000
 #elif defined __linux__ && defined __powerpc__
 # define PIPE_DATA_BLOCK_SIZE 1100000
+#elif defined _WIN32 && !defined __CYGWIN__
+# define PIPE_DATA_BLOCK_SIZE 10000
 #else
 # define PIPE_DATA_BLOCK_SIZE 70000
 #endif