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

ChangeLog
tests/test-trim.c

index 910d06634f27861ae4da120fe790203bf5e00ef8..e07f4b01cadd6423d0359a5b8f7e417d86857626 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,8 @@
 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.
+       * tests/test-trim.c (main): On macOS, disable test cases that fail on
+       macOS 15.4.
 
 2025-04-15  Bruno Haible  <bruno@clisp.org>
 
index bca0afe3dfe99c632c27e60a5cf1f259d7b37d1b..587883897d4fd9ae9a46d5415d31a7061603cf36 100644 (file)
@@ -137,18 +137,14 @@ 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)
+        #if !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __DragonFly__ || defined __sun)
         { /* U+2002 EN SPACE */
           char *result = trim ("\201\066\243\070\241\244foo\201\066\243\070");
           ASSERT (strcmp (result, "\241\244foo") == 0);
           free (result);
         }
         #endif
-        #if !(defined __FreeBSD__ || defined __DragonFly__ || defined __illumos__)
+        #if !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __DragonFly__ || defined __illumos__)
         { /* U+3000 IDEOGRAPHIC SPACE */
           char *result = trim ("\241\241\241\244foo\241\241");
           ASSERT (strcmp (result, "\241\244foo") == 0);