From 7becd9c0718a0abf074c33b6564a50dfe2858504 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 15 Apr 2025 16:14:07 +0200 Subject: [PATCH] trim tests: Avoid test failures on macOS 15.4. * tests/test-trim.c (main): On macOS, disable test cases that randomly succeed or fail on macOS 15.4. --- ChangeLog | 6 ++++++ tests/test-trim.c | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 19f65af8f0..910d06634f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2025-04-15 Bruno Haible + + trim tests: Avoid test failures on macOS 15.4. + * tests/test-trim.c (main): On macOS, disable test cases that randomly + succeed or fail on macOS 15.4. + 2025-04-15 Bruno Haible vasnprintf: Optimize new code. diff --git a/tests/test-trim.c b/tests/test-trim.c index 68842b22ca..bca0afe3df 100644 --- a/tests/test-trim.c +++ b/tests/test-trim.c @@ -137,6 +137,10 @@ main (int argc, char *argv[]) case '3': /* Locale encoding is GB18030. */ + #if (defined __APPLE__ && defined __MACH__) /* As of macOS 15.4 */ + fputs ("Skipping test: The character properties in the GB18030 locale on this system are broken.\n", stderr); + return 77; + #endif #if !(defined __FreeBSD__ || defined __DragonFly__ || defined __sun) { /* U+2002 EN SPACE */ char *result = trim ("\201\066\243\070\241\244foo\201\066\243\070"); -- 2.39.5