From: Bruno Haible Date: Tue, 15 Apr 2025 14:14:07 +0000 (+0200) Subject: trim tests: Avoid test failures on macOS 15.4. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=ceaccf6781dbfab5afe98b99d37a339fdc43e140;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index ef65281444..2ad6eeb398 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 fail on + macOS 15.4. + 2025-04-14 Bruno Haible c32is*, c32to* tests: Avoid test failures on macOS 15.4. diff --git a/tests/test-trim.c b/tests/test-trim.c index 68842b22ca..587883897d 100644 --- a/tests/test-trim.c +++ b/tests/test-trim.c @@ -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);