]> Savannah Git Hosting - gnulib.git/commitdiff
striconveha tests: Avoid test failure on macOS 12.5.
authorBruno Haible <bruno@clisp.org>
Sat, 24 Feb 2024 12:56:30 +0000 (13:56 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 16 Mar 2024 10:42:50 +0000 (11:42 +0100)
* tests/test-striconveha.c (main): Skip transliteration tests when using
Apple's modified GNU libiconv or the bastard Apple iconv.

ChangeLog
tests/test-striconveha.c

index 2e836df16d53da4f10f8b7955e5617e63bd7c899..a311bc4996bc60959649c41592df6b3274d93f6d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-02-24  Bruno Haible  <bruno@clisp.org>
+
+       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-21  Bruno Haible  <bruno@clisp.org>
 
        c-strtold: Use strtold_l when available (regr. 2019-01-31).
index c401177e29dd31986420be2ee5ad7d42541dfea0..376f3cb603594cb970cd49dbb3ec8eaa90e0199b 100644 (file)
@@ -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++)
     {