summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2023-04-08 14:45:16 +0200
committerBruno Haible <bruno@clisp.org>2023-04-21 03:17:43 +0200
commit2203388fab9fe1a8b5d6e787768579e77ad78e4c (patch)
treec9f646b7eb5a131b1a06e7a77604580f80aa332b
parent39cddafef899bda269f2487cd414e8e376f3a4a0 (diff)
downloadgnulib-2203388fab9fe1a8b5d6e787768579e77ad78e4c.tar.gz
striconveh tests: Avoid test failure on glibc 2.15.
* tests/test-striconveh.c (main): Skip some of the GB18030 tests on glibc < 2.16.
-rw-r--r--ChangeLog6
-rw-r--r--tests/test-striconveh.c18
2 files changed, 18 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index fe99bcda8a..2be487ebae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-04-08 Bruno Haible <bruno@clisp.org>
+
+ striconveh tests: Avoid test failure on glibc 2.15.
+ * tests/test-striconveh.c (main): Skip some of the GB18030 tests on
+ glibc < 2.16.
+
2023-04-07 Bruno Haible <bruno@clisp.org>
unistdio/*: Fix test failures (regression 2023-01-28).
diff --git a/tests/test-striconveh.c b/tests/test-striconveh.c
index 2f769fc234..5e72d8e6cb 100644
--- a/tests/test-striconveh.c
+++ b/tests/test-striconveh.c
@@ -462,8 +462,10 @@ main ()
}
}
-# if defined _LIBICONV_VERSION || (defined __GLIBC__ && !defined __UCLIBC__)
- /* Test conversion from ASCII to GB18030 with invalid input (EILSEQ). */
+# if defined _LIBICONV_VERSION || ((__GLIBC__ + (__GLIBC_MINOR__ >= 16) > 2) && !defined __UCLIBC__)
+ /* Test conversion from ASCII to GB18030 with invalid input (EILSEQ).
+ Note: glibc's GB18030 converter was buggy in glibc-2.15; fixed by
+ Andreas Schwab on 2012-02-06. */
for (h = 0; h < SIZEOF (handlers); h++)
{
enum iconv_ilseq_handler handler = handlers[h];
@@ -746,8 +748,10 @@ main ()
}
}
-# if defined _LIBICONV_VERSION || (defined __GLIBC__ && !defined __UCLIBC__)
- /* Test conversion from UTF-7 to GB18030 with EILSEQ. */
+# if defined _LIBICONV_VERSION || ((__GLIBC__ + (__GLIBC_MINOR__ >= 16) > 2) && !defined __UCLIBC__)
+ /* Test conversion from UTF-7 to GB18030 with EILSEQ.
+ Note: glibc's GB18030 converter was buggy in glibc-2.15; fixed by
+ Andreas Schwab on 2012-02-06. */
for (h = 0; h < SIZEOF (handlers); h++)
{
enum iconv_ilseq_handler handler = handlers[h];
@@ -985,8 +989,10 @@ main ()
}
}
-# if defined _LIBICONV_VERSION || (defined __GLIBC__ && !defined __UCLIBC__)
- /* Test conversion from ASCII to GB18030 with invalid input (EILSEQ). */
+# if defined _LIBICONV_VERSION || ((__GLIBC__ + (__GLIBC_MINOR__ >= 16) > 2) && !defined __UCLIBC__)
+ /* Test conversion from ASCII to GB18030 with invalid input (EILSEQ).
+ Note: glibc's GB18030 converter was buggy in glibc-2.15; fixed by
+ Andreas Schwab on 2012-02-06. */
for (h = 0; h < SIZEOF (handlers); h++)
{
enum iconv_ilseq_handler handler = handlers[h];