From ef4c430e2d012bf2edaa13f28fd0042169845222 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 12 Aug 2024 11:15:37 +0200 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ tests/test-pthread-rwlock-waitqueue.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4cc404508a..43f32c4fca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-08-12 Bruno Haible + + 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 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 */ -- 2.39.5