bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

c32isgraph/c32isprint/c32ispunct tests: Avoid test failures on OmniOS


From: Bruno Haible
Subject: c32isgraph/c32isprint/c32ispunct tests: Avoid test failures on OmniOS
Date: Fri, 01 Jan 2021 18:47:18 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-197-generic; KDE/5.18.0; x86_64; ; )

On Solaris 11 OmniOS, I see these test failures:

FAIL: test-c32isgraph.sh
========================

../../gltests/test-c32isgraph.c:172: assertion 'is == 0' failed
../../gltests/test-c32isgraph.sh: line 26: 20314: Abort
FAIL test-c32isgraph.sh (exit status: 1)

FAIL: test-c32isprint.sh
========================

../../gltests/test-c32isprint.c:175: assertion 'is == 0' failed
../../gltests/test-c32isprint.sh: line 26: 20332: Abort
FAIL test-c32isprint.sh (exit status: 1)

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

../../gltests/test-c32ispunct.c:252: assertion 'is == 0' failed
../../gltests/test-c32ispunct.sh: line 26: 20341: Abort
FAIL test-c32ispunct.sh (exit status: 1)

This patch avoids the failures.


2021-01-01  Bruno Haible  <bruno@clisp.org>

        c32isgraph/c32isprint/c32ispunct tests: Avoid test failures on OmniOS.
        * tests/test-c32isgraph.c (main): On Solaris, disable tests that fail on
        Solaris 11 OmniOS.
        * tests/test-c32isprint.c (main): Likewise.
        * tests/test-c32ispunct.c (main): Likewise.

diff --git a/tests/test-c32isgraph.c b/tests/test-c32isgraph.c
index b5ecdd3..c1f9d20 100644
--- a/tests/test-c32isgraph.c
+++ b/tests/test-c32isgraph.c
@@ -166,7 +166,7 @@ main (int argc, char *argv[])
           /* U+2002 EN SPACE */
           is = for_character ("\342\200\202", 3);
           ASSERT (is == 0);
-        #if !(defined __GLIBC__ || defined _AIX || defined __CYGWIN__)
+        #if !(defined __GLIBC__ || defined _AIX || defined __sun || defined 
__CYGWIN__)
           /* U+202E RIGHT-TO-LEFT OVERRIDE */
           is = for_character ("\342\200\256", 3);
           ASSERT (is == 0);
@@ -174,7 +174,7 @@ main (int argc, char *argv[])
           /* U+3000 IDEOGRAPHIC SPACE */
           is = for_character ("\343\200\200", 3);
           ASSERT (is == 0);
-        #if !(defined __GLIBC__ || defined _AIX || defined __CYGWIN__)
+        #if !(defined __GLIBC__ || defined _AIX || defined __sun || defined 
__CYGWIN__)
           /* U+FEFF ZERO WIDTH NO-BREAK SPACE */
           is = for_character ("\357\273\277", 3);
           ASSERT (is == 0);
@@ -184,7 +184,7 @@ main (int argc, char *argv[])
           is = for_character ("\360\240\200\200", 4);
           ASSERT (is != 0);
         #endif
-        #if !(defined __GLIBC__ || defined _AIX || defined __CYGWIN__ || 
(defined _WIN32 && !defined __CYGWIN__))
+        #if !(defined __GLIBC__ || defined _AIX || defined __sun || defined 
__CYGWIN__ || (defined _WIN32 && !defined __CYGWIN__))
           /* U+E0001 LANGUAGE TAG */
           is = for_character ("\363\240\200\201", 4);
           ASSERT (is == 0);
diff --git a/tests/test-c32isprint.c b/tests/test-c32isprint.c
index 38aab4f..a3f61f2 100644
--- a/tests/test-c32isprint.c
+++ b/tests/test-c32isprint.c
@@ -169,7 +169,7 @@ main (int argc, char *argv[])
           is = for_character ("\342\200\202", 3);
           ASSERT (is != 0);
         #endif
-        #if !(defined __GLIBC__ || defined _AIX || defined __CYGWIN__)
+        #if !(defined __GLIBC__ || defined _AIX || defined __sun || defined 
__CYGWIN__)
           /* U+202E RIGHT-TO-LEFT OVERRIDE */
           is = for_character ("\342\200\256", 3);
           ASSERT (is == 0);
@@ -179,7 +179,7 @@ main (int argc, char *argv[])
           is = for_character ("\343\200\200", 3);
           ASSERT (is != 0);
         #endif
-        #if !(defined __GLIBC__ || defined _AIX || defined __CYGWIN__ || 
(defined _WIN32 && !defined __CYGWIN__))
+        #if !(defined __GLIBC__ || defined _AIX || defined __sun || defined 
__CYGWIN__ || (defined _WIN32 && !defined __CYGWIN__))
           /* U+FEFF ZERO WIDTH NO-BREAK SPACE */
           is = for_character ("\357\273\277", 3);
           ASSERT (is == 0);
@@ -189,7 +189,7 @@ main (int argc, char *argv[])
           is = for_character ("\360\240\200\200", 4);
           ASSERT (is != 0);
         #endif
-        #if !(defined __GLIBC__ || defined _AIX || defined __CYGWIN__ || 
(defined _WIN32 && !defined __CYGWIN__))
+        #if !(defined __GLIBC__ || defined _AIX || defined __sun || defined 
__CYGWIN__ || (defined _WIN32 && !defined __CYGWIN__))
           /* U+E0001 LANGUAGE TAG */
           is = for_character ("\363\240\200\201", 4);
           ASSERT (is == 0);
diff --git a/tests/test-c32ispunct.c b/tests/test-c32ispunct.c
index ca6b9a2..0ba4f51 100644
--- a/tests/test-c32ispunct.c
+++ b/tests/test-c32ispunct.c
@@ -246,7 +246,7 @@ main (int argc, char *argv[])
           is = for_character ("\360\235\204\200", 4);
           ASSERT (is != 0);
         #endif
-        #if !(defined __GLIBC__ || defined _AIX || defined __CYGWIN__ || 
(defined _WIN32 && !defined __CYGWIN__))
+        #if !(defined __GLIBC__ || defined _AIX || defined __sun || defined 
__CYGWIN__ || (defined _WIN32 && !defined __CYGWIN__))
           /* U+E003A TAG COLON */
           is = for_character ("\363\240\200\272", 4);
           ASSERT (is == 0);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]