From: Bruno Haible Date: Sat, 24 Feb 2024 12:56:30 +0000 (+0100) Subject: striconveha tests: Avoid test failure on macOS 12.5. X-Git-Tag: v1.0~380 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5828723e285945975dbb3d2e89cd8854d5b7a075;p=thirdparty%2Fgnulib.git striconveha tests: Avoid test failure on macOS 12.5. * tests/test-striconveha.c (main): Skip transliteration tests when using Apple's modified GNU libiconv or the bastard Apple iconv. --- diff --git a/ChangeLog b/ChangeLog index 1900d90186..f7cbd64874 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-02-24 Bruno Haible + + striconveha tests: Avoid test failure on macOS 12.5. + * tests/test-striconveha.c (main): Skip transliteration tests when using + Apple's modified GNU libiconv or the bastard Apple iconv. + 2024-02-23 Bruno Haible DEPENDENCIES: Update entry about gperf. diff --git a/tests/test-striconveha.c b/tests/test-striconveha.c index c401177e29..376f3cb603 100644 --- a/tests/test-striconveha.c +++ b/tests/test-striconveha.c @@ -406,7 +406,7 @@ main () } # endif -# if (((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2) && !defined __UCLIBC__) || _LIBICONV_VERSION >= 0x0105 +# if (((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2) && !defined __UCLIBC__) || (_LIBICONV_VERSION >= 0x0105 && !(_LIBICONV_VERSION == 0x10b && defined __APPLE__)) /* Test conversion from UTF-8 to ISO-8859-1 with transliteration. */ for (h = 0; h < SIZEOF (handlers); h++) { @@ -586,7 +586,7 @@ main () } # endif -# if (((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2) && !defined __UCLIBC__) || _LIBICONV_VERSION >= 0x0105 +# if (((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2) && !defined __UCLIBC__) || (_LIBICONV_VERSION >= 0x0105 && !(_LIBICONV_VERSION == 0x10b && defined __APPLE__)) /* Test conversion from UTF-8 to ISO-8859-1 with transliteration. */ for (h = 0; h < SIZEOF (handlers); h++) {