]> 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>
Sat, 3 May 2025 13:42:22 +0000 (15:42 +0200)
* tests/test-trim.c (main): On macOS, disable test cases that fail on
macOS 15.4.

ChangeLog
tests/test-trim.c

index ef65281444c8dfc5ac4f88827cad47366ce9bc3a..2ad6eeb3981cbe50872dfdff11427755f7f21ac8 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 fail on
+       macOS 15.4.
+
 2025-04-14  Bruno Haible  <bruno@clisp.org>
 
        c32is*, c32to* tests: Avoid test failures on macOS 15.4.
index 68842b22cafa11e4e8cd56acf00c08d8760cb1d4..587883897d4fd9ae9a46d5415d31a7061603cf36 100644 (file)
@@ -137,14 +137,14 @@ main (int argc, char *argv[])
 
       case '3':
         /* Locale encoding is GB18030.  */
-        #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);