On a Solaris 11 OmniOS machine with a zh_CN.GB18030 locale, libunistring
(or a testdir without module 'uchar-c23') also shows this test failure:

FAIL: test-c32ispunct.sh
========================

../../gltests/test-c32ispunct.c:283: assertion 'is != 0' failed
../../gltests/test-c32ispunct.c:302: assertion 'is != 0' failed
FAIL test-c32ispunct.sh (exit status: 1)

This patch avoids the failure.


2024-06-09  Bruno Haible  <br...@clisp.org>

        c32ispunct tests: Avoid a test failure on Solaris 11 OmniOS.
        * tests/test-c32ispunct.c (main): On Solaris, disable two tests that
        fail in the zh_CN.GB18030 locale on Solaris 11 OmniOS.

diff --git a/tests/test-c32ispunct.c b/tests/test-c32ispunct.c
index ee21852601..9eb2fd0fd9 100644
--- a/tests/test-c32ispunct.c
+++ b/tests/test-c32ispunct.c
@@ -277,7 +277,7 @@ main (int argc, char *argv[])
           is = for_character ("\201\060\206\067", 4);
           ASSERT (is != 0);
         #endif
-        #if !(defined __FreeBSD__ || defined __DragonFly__)
+        #if !(defined __FreeBSD__ || defined __DragonFly__ || defined __sun)
           /* U+00D7 MULTIPLICATION SIGN */
           is = for_character ("\241\301", 2);
           ASSERT (is != 0);
@@ -296,7 +296,7 @@ main (int argc, char *argv[])
           is = for_character ("\201\060\374\067", 4);
           ASSERT (is != 0);
         #endif
-        #if !(defined __FreeBSD__ || defined __DragonFly__)
+        #if !(defined __FreeBSD__ || defined __DragonFly__ || defined __sun)
           /* U+2192 RIGHTWARDS ARROW */
           is = for_character ("\241\372", 2);
           ASSERT (is != 0);




Reply via email to