From: Bruno Haible <bruno@clisp.org> Date: Mon, 12 Aug 2024 09:15:37 +0000 (+0200) Subject: pthread-rwlock: Attempt to avoid test failure on some more machines. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=ef4c430e2d012bf2edaa13f28fd0042169845222;p=gnulib.git pthread-rwlock: Attempt to avoid test failure on some more machines. * tests/test-pthread-rwlock-waitqueue.c (STEP_INTERVAL): Bump the minimum interval to 20 ms on macOS. --- diff --git a/ChangeLog b/ChangeLog index 4cc404508a..43f32c4fca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-08-12 Bruno Haible <bruno@clisp.org> + + pthread-rwlock: Attempt to avoid test failure on some more machines. + * tests/test-pthread-rwlock-waitqueue.c (STEP_INTERVAL): Bump the + minimum interval to 20 ms on macOS. + 2024-08-11 Collin Funk <collin.funk1@gmail.com> htonl: Fix link errors on Windows. diff --git a/tests/test-pthread-rwlock-waitqueue.c b/tests/test-pthread-rwlock-waitqueue.c index b7df033c90..bfe5770463 100644 --- a/tests/test-pthread-rwlock-waitqueue.c +++ b/tests/test-pthread-rwlock-waitqueue.c @@ -52,8 +52,8 @@ #if defined _WIN32 || defined __CYGWIN__ /* Windows */ # define STEP_INTERVAL 50000000 /* nanoseconds */ -#elif (defined __FreeBSD__ || defined __DragonFly__) || (defined __linux__ && defined __hppa) -/* FreeBSD, Linux/hppa */ +#elif (defined __APPLE__ && defined __MACH__) || (defined __FreeBSD__ || defined __DragonFly__) || (defined __linux__ && defined __hppa) +/* macOS, FreeBSD, Linux/hppa */ # define STEP_INTERVAL 20000000 /* nanoseconds */ #else # define STEP_INTERVAL 10000000 /* nanoseconds */