From: Bruno Haible Date: Mon, 12 Aug 2024 12:56:46 +0000 (+0200) Subject: pthread-rwlock: Attempt harder to avoid test failure on macOS. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=34d5760554bfd4eea6a8a932a3016282c2c3c13f;p=gnulib.git pthread-rwlock: Attempt harder to avoid test failure on macOS. * tests/test-pthread-rwlock-waitqueue.c (STEP_INTERVAL): Bump the minimum interval to 200 ms on macOS. --- diff --git a/ChangeLog b/ChangeLog index c14cbaf1a7..730e85717f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2024-08-12 Bruno Haible + pthread-rwlock: Attempt harder to avoid test failure on macOS. + * tests/test-pthread-rwlock-waitqueue.c (STEP_INTERVAL): Bump the + minimum interval to 200 ms on macOS. + pthread-rwlock: Attempt harder to avoid test failure on macOS. * tests/test-pthread-rwlock-waitqueue.c (STEP_INTERVAL): Bump the minimum interval to 100 ms on macOS. diff --git a/tests/test-pthread-rwlock-waitqueue.c b/tests/test-pthread-rwlock-waitqueue.c index 7a1a2cde62..ad190b5491 100644 --- a/tests/test-pthread-rwlock-waitqueue.c +++ b/tests/test-pthread-rwlock-waitqueue.c @@ -51,7 +51,7 @@ RRR, RRRR, RRRRR fail. */ #if (defined __APPLE__ && defined __MACH__) /* macOS */ -# define STEP_INTERVAL 100000000 /* nanoseconds */ +# define STEP_INTERVAL 200000000 /* nanoseconds */ #elif defined _WIN32 || defined __CYGWIN__ /* Windows */ # define STEP_INTERVAL 50000000 /* nanoseconds */