]> Savannah Git Hosting - gnulib.git/commitdiff
trim tests: Avoid test failures on macOS 15.4.
authorBruno Haible <bruno@clisp.org>
Tue, 15 Apr 2025 14:14:07 +0000 (16:14 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 15 Apr 2025 14:14:07 +0000 (16:14 +0200)
* tests/test-trim.c (main): On macOS, disable test cases that randomly
succeed or fail on macOS 15.4.

ChangeLog
tests/test-trim.c

index 19f65af8f0704267fc23549a4f285e0a03a4f20b..910d06634f27861ae4da120fe790203bf5e00ef8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-04-15  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
 
        vasnprintf: Optimize new code.
index 68842b22cafa11e4e8cd56acf00c08d8760cb1d4..bca0afe3dfe99c632c27e60a5cf1f259d7b37d1b 100644 (file)
@@ -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");