]> Savannah Git Hosting - gnulib.git/commitdiff
pthread-rwlock: Attempt to avoid test failure on some more machines.
authorBruno Haible <bruno@clisp.org>
Mon, 12 Aug 2024 09:15:37 +0000 (11:15 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 12 Aug 2024 09:15:37 +0000 (11:15 +0200)
* tests/test-pthread-rwlock-waitqueue.c (STEP_INTERVAL): Bump the
minimum interval to 20 ms on macOS.

ChangeLog
tests/test-pthread-rwlock-waitqueue.c

index 4cc404508a89ec4ccd73b2966b0299dcb6c97300..43f32c4fcae65eec4c4d470059016c7101949532 100644 (file)
--- 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.
index b7df033c9043a43daeb0d328577d45fcedc2a1ff..bfe5770463d9eddf856e2424ea80ad5d943cb9a6 100644 (file)
@@ -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 */