From 7c3bb8672487df690770d3bf96f2c140b7a64b76 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 2 Jul 2019 19:59:28 +0200 Subject: [PATCH] nonblocking-pipe tests: Fix test failure on MSVC. * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on native Windows. --- ChangeLog | 6 ++++++ tests/test-nonblocking-pipe.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3c5f0a325f..706fe6a771 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2019-07-02 Bruno Haible + + 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 usleep: Implement with millisecond resolution on native Windows. diff --git a/tests/test-nonblocking-pipe.h b/tests/test-nonblocking-pipe.h index fd101c5e7e..7edb64e496 100644 --- a/tests/test-nonblocking-pipe.h +++ b/tests/test-nonblocking-pipe.h @@ -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 -- 2.39.5