]> Savannah Git Hosting - gnulib.git/commitdiff
tests: Avoid some test failures on Slackware 13.37.
authorBruno Haible <bruno@clisp.org>
Wed, 16 Aug 2023 15:45:26 +0000 (17:45 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 16 Aug 2023 16:32:36 +0000 (18:32 +0200)
* tests/test-c32isalnum.c (main): Disable GB18030 tests on
glibc 2.13..2.15.
* tests/test-c32isalpha.c (main): Likewise.
* tests/test-c32isblank.c (main): Likewise.
* tests/test-c32iscntrl.c (main): Likewise.
* tests/test-c32isdigit.c (main): Likewise.
* tests/test-c32isgraph.c (main): Likewise.
* tests/test-c32islower.c (main): Likewise.
* tests/test-c32isprint.c (main): Likewise.
* tests/test-c32ispunct.c (main): Likewise.
* tests/test-c32isspace.c (main): Likewise.
* tests/test-c32isupper.c (main): Likewise.
* tests/test-c32isxdigit.c (main): Likewise.
* tests/test-c32rtomb.c (main): Likewise.
* tests/test-c32snrtombs.c (main): Likewise.
* tests/test-c32srtombs.c (main): Likewise.
* tests/test-c32stombs.c (main): Likewise.
* tests/test-c32tolower.c (main): Likewise.
* tests/test-c32toupper.c (main): Likewise.
* tests/test-fnmatch.c (main): Likewise.
* tests/test-mbrtoc16.c (main): Likewise.
* tests/test-mbrtoc32.c (main): Likewise.
* tests/test-mbsnrtoc32s.c (main): Likewise.
* tests/test-mbsrtoc32s.c (main): Likewise.
* tests/test-mbstoc32s.c (main): Likewise.

25 files changed:
ChangeLog
tests/test-c32isalnum.c
tests/test-c32isalpha.c
tests/test-c32isblank.c
tests/test-c32iscntrl.c
tests/test-c32isdigit.c
tests/test-c32isgraph.c
tests/test-c32islower.c
tests/test-c32isprint.c
tests/test-c32ispunct.c
tests/test-c32isspace.c
tests/test-c32isupper.c
tests/test-c32isxdigit.c
tests/test-c32rtomb.c
tests/test-c32snrtombs.c
tests/test-c32srtombs.c
tests/test-c32stombs.c
tests/test-c32tolower.c
tests/test-c32toupper.c
tests/test-fnmatch.c
tests/test-mbrtoc16.c
tests/test-mbrtoc32.c
tests/test-mbsnrtoc32s.c
tests/test-mbsrtoc32s.c
tests/test-mbstoc32s.c

index fc8269e23db20650fcbb193fdbbcebf73d362817..873e683f0a92497f9da8f1c6c746fb8935047323 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,32 @@
+2023-08-16  Bruno Haible  <bruno@clisp.org>
+
+       tests: Avoid some test failures on Slackware 13.37.
+       * tests/test-c32isalnum.c (main): Disable GB18030 tests on
+       glibc 2.13..2.15.
+       * tests/test-c32isalpha.c (main): Likewise.
+       * tests/test-c32isblank.c (main): Likewise.
+       * tests/test-c32iscntrl.c (main): Likewise.
+       * tests/test-c32isdigit.c (main): Likewise.
+       * tests/test-c32isgraph.c (main): Likewise.
+       * tests/test-c32islower.c (main): Likewise.
+       * tests/test-c32isprint.c (main): Likewise.
+       * tests/test-c32ispunct.c (main): Likewise.
+       * tests/test-c32isspace.c (main): Likewise.
+       * tests/test-c32isupper.c (main): Likewise.
+       * tests/test-c32isxdigit.c (main): Likewise.
+       * tests/test-c32rtomb.c (main): Likewise.
+       * tests/test-c32snrtombs.c (main): Likewise.
+       * tests/test-c32srtombs.c (main): Likewise.
+       * tests/test-c32stombs.c (main): Likewise.
+       * tests/test-c32tolower.c (main): Likewise.
+       * tests/test-c32toupper.c (main): Likewise.
+       * tests/test-fnmatch.c (main): Likewise.
+       * tests/test-mbrtoc16.c (main): Likewise.
+       * tests/test-mbrtoc32.c (main): Likewise.
+       * tests/test-mbsnrtoc32s.c (main): Likewise.
+       * tests/test-mbsrtoc32s.c (main): Likewise.
+       * tests/test-mbstoc32s.c (main): Likewise.
+
 2023-08-15  Bruno Haible  <bruno@clisp.org>
 
        readutmp tests: Add test against today's bug.
index 9805c1331f32ff01f62eed545ea11a8687f85c6f..b1e3659cb881a12fba1e0aff26782696347e471e 100644 (file)
@@ -212,7 +212,7 @@ main (int argc, char *argv[])
 
       case '4':
         /* Locale encoding is GB18030.  */
-        #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun)
+        #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun || (defined __GLIBC__ && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 13 && __GLIBC_MINOR__ <= 15))
         fputs ("Skipping test: The GB18030 converter in this system's iconv is broken.\n", stderr);
         return 77;
         #endif
index 31c98bb76f10281efc33fb2b29d50ea63ff37303..1b3751db2c91331cd0788838530f066f384a42e2 100644 (file)
@@ -210,7 +210,7 @@ main (int argc, char *argv[])
 
       case '4':
         /* Locale encoding is GB18030.  */
-        #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun)
+        #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun || (defined __GLIBC__ && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 13 && __GLIBC_MINOR__ <= 15))
         fputs ("Skipping test: The GB18030 converter in this system's iconv is broken.\n", stderr);
         return 77;
         #endif
index ac6f4251eb68e2e8c183d77d334309ea41f0fb90..6e917426119dd41ee5ab9760ca9063757412cee2 100644 (file)
@@ -169,7 +169,7 @@ main (int argc, char *argv[])
 
       case '4':
         /* Locale encoding is GB18030.  */
-        #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun)
+        #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun || (defined __GLIBC__ && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 13 && __GLIBC_MINOR__ <= 15))
         fputs ("Skipping test: The GB18030 converter in this system's iconv is broken.\n", stderr);
         return 77;
         #endif
index b47f936134b69aa320fb6bdcd8ae2d4b99e6d40c..81b9344ee00b1611a448d842da97634176527d8f 100644 (file)
@@ -171,7 +171,7 @@ main (int argc, char *argv[])
 
       case '4':
         /* Locale encoding is GB18030.  */
-        #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun)
+        #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun || (defined __GLIBC__ && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 13 && __GLIBC_MINOR__ <= 15))
         fputs ("Skipping test: The GB18030 converter in this system's iconv is broken.\n", stderr);
         return 77;
         #endif
index a2a4ab1623422c8f86d3cc1a3f66944e08d52c43..8c7ebcab7047864c926a8a0f0b31340d4b87f1f4 100644 (file)
@@ -183,7 +183,7 @@ main (int argc, char *argv[])
 
       case '4':
         /* Locale encoding is GB18030.  */
-        #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun)
+        #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun || (defined __GLIBC__ && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 13 && __GLIBC_MINOR__ <= 15))
         fputs ("Skipping test: The GB18030 converter in this system's iconv is broken.\n", stderr);
         return 77;
         #endif
index 6ee7a1c8667ad4613bd83cd41fec40a5dc10ad8f..f41d3ec991868ac66a9bddac4c91c07a1fc4510f 100644 (file)
@@ -194,7 +194,7 @@ main (int argc, char *argv[])
 
       case '4':
         /* Locale encoding is GB18030.  */
-        #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun)
+        #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun || (defined __GLIBC__ && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 13 && __GLIBC_MINOR__ <= 15))
         fputs ("Skipping test: The GB18030 converter in this system's iconv is broken.\n", stderr);
         return 77;
         #endif
index 41e0e27cb6efb0cdba1590bea4287180b6584d70..6f1e2a946a1955c729f60c7e4f484db62ae916e0 100644 (file)
@@ -267,7 +267,7 @@ main (int argc, char *argv[])
 
       case '4':
         /* Locale encoding is GB18030.  */
-        #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun)
+        #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun || (defined __GLIBC__ && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 13 && __GLIBC_MINOR__ <= 15))
         fputs ("Skipping test: The GB18030 converter in this system's iconv is broken.\n", stderr);
         return 77;
         #endif
index 18ccf556777f2ad9d8f1f814eec0dc1971df0b35..fdabc2c637815d2efb90571db0818541330b6b49 100644 (file)
@@ -197,7 +197,7 @@ main (int argc, char *argv[])
 
       case '4':
         /* Locale encoding is GB18030.  */
-        #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun)
+        #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun || (defined __GLIBC__ && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 13 && __GLIBC_MINOR__ <= 15))
         fputs ("Skipping test: The GB18030 converter in this system's iconv is broken.\n", stderr);
         return 77;
         #endif
index c655b6317a9d1e92c2069762dd8e10a1595d7f19..792ff61a12a89e32aa7cbf28254493b23dce50e8 100644 (file)
@@ -256,7 +256,7 @@ main (int argc, char *argv[])
 
       case '4':
         /* Locale encoding is GB18030.  */
-        #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun)
+        #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun || (defined __GLIBC__ && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 13 && __GLIBC_MINOR__ <= 15))
         fputs ("Skipping test: The GB18030 converter in this system's iconv is broken.\n", stderr);
         return 77;
         #endif
index da6335802cbe1fb49348a654422293012f436d7a..0ca5dea317d0d9bd540fbbfa1c32cb16d57d29d0 100644 (file)
@@ -165,7 +165,7 @@ main (int argc, char *argv[])
 
       case '4':
         /* Locale encoding is GB18030.  */
-        #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun)
+        #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun || (defined __GLIBC__ && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 13 && __GLIBC_MINOR__ <= 15))
         fputs ("Skipping test: The GB18030 converter in this system's iconv is broken.\n", stderr);
         return 77;
         #endif
index 31daad64c0320fa158d1404dad73e9a63cb33cad..8cef611a41feb80348ff8f707a19d74b624918af 100644 (file)
@@ -259,7 +259,7 @@ main (int argc, char *argv[])
 
       case '4':
         /* Locale encoding is GB18030.  */
-        #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun)
+        #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun || (defined __GLIBC__ && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 13 && __GLIBC_MINOR__ <= 15))
         fputs ("Skipping test: The GB18030 converter in this system's iconv is broken.\n", stderr);
         return 77;
         #endif
index 0fec8a4a4bc6276d09f4aecd0debdb57b1e812aa..43ef7f55563d57f91b21c2baed21fb8e9f0b1174 100644 (file)
@@ -200,7 +200,7 @@ main (int argc, char *argv[])
 
       case '4':
         /* Locale encoding is GB18030.  */
-        #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun)
+        #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun || (defined __GLIBC__ && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 13 && __GLIBC_MINOR__ <= 15))
         fputs ("Skipping test: The GB18030 converter in this system's iconv is broken.\n", stderr);
         return 77;
         #endif
index 4c39fd54a6ec4f0fb74317a0b262eb4f630ae24c..ffdc7801996f2e6f87296a6245c5cce55ef8ec7a 100644 (file)
@@ -156,7 +156,7 @@ main (int argc, char *argv[])
 
       case '5':
         /* Locale encoding is GB18030.  */
-        #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun)
+        #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun || (defined __GLIBC__ && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 13 && __GLIBC_MINOR__ <= 15))
         fputs ("Skipping test: The GB18030 converter in this system's iconv is broken.\n", stderr);
         return 77;
         #endif
index 9f2c88b3077f94819e25af14ce8009578d74c23c..0dee9c0a2e19d971843864cc553ed07f1b77b698 100644 (file)
@@ -160,7 +160,7 @@ main (int argc, char *argv[])
 
         case '5':
           /* Locale encoding is GB18030.  */
-          #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun)
+          #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun || (defined __GLIBC__ && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 13 && __GLIBC_MINOR__ <= 15))
           fputs ("Skipping test: The GB18030 converter in this system's iconv is broken.\n", stderr);
           return 77;
           #endif
index 465c30d4c236ef6497bea878d1dc9da651792cd9..e6c7a32d6e218f338fb8c8aecb84106cbf27840f 100644 (file)
@@ -160,7 +160,7 @@ main (int argc, char *argv[])
 
         case '5':
           /* Locale encoding is GB18030.  */
-          #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun)
+          #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun || (defined __GLIBC__ && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 13 && __GLIBC_MINOR__ <= 15))
           fputs ("Skipping test: The GB18030 converter in this system's iconv is broken.\n", stderr);
           return 77;
           #endif
index 5e5b957a49d78c57f113f9faae627a69d4c7c0e9..69af9d28bb5414c4cc3a6e523b770cce61ede269 100644 (file)
@@ -139,7 +139,7 @@ main (int argc, char *argv[])
 
         case '5':
           /* Locale encoding is GB18030.  */
-          #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun)
+          #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun || (defined __GLIBC__ && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 13 && __GLIBC_MINOR__ <= 15))
           fputs ("Skipping test: The GB18030 converter in this system's iconv is broken.\n", stderr);
           return 77;
           #endif
index 1d35abb2bc0e2f2a8f9754a982bb112f5968fa32..4141e58d85586c801a911647a63304dea74a3f02 100644 (file)
@@ -336,7 +336,7 @@ main (int argc, char *argv[])
 
       case '4':
         /* Locale encoding is GB18030.  */
-        #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun)
+        #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun || (defined __GLIBC__ && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 13 && __GLIBC_MINOR__ <= 15))
         fputs ("Skipping test: The GB18030 converter in this system's iconv is broken.\n", stderr);
         return 77;
         #endif
index 4ec64313714d5045fe31ff992d901243278d3f3d..7047afc5046ef66c97e5241e250b93c936670678 100644 (file)
@@ -348,7 +348,7 @@ main (int argc, char *argv[])
 
       case '4':
         /* Locale encoding is GB18030.  */
-        #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun)
+        #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun || (defined __GLIBC__ && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 13 && __GLIBC_MINOR__ <= 15))
         fputs ("Skipping test: The GB18030 converter in this system's iconv is broken.\n", stderr);
         return 77;
         #endif
index b6ffc655390855b6d57c24553c8945ea13e4dc64..488aacf0c04866fdfd5d8a7fc846b0d7523a139c 100644 (file)
@@ -853,6 +853,10 @@ main (int argc, char *argv[])
 
       case '5':
         /* Locale encoding is GB18030.  */
+        #if (defined __GLIBC__ && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 13 && __GLIBC_MINOR__ <= 15)
+        fputs ("Skipping test: The GB18030 converter in this system's iconv is broken.\n", stderr);
+        return 77;
+        #endif
 
         ASSERT (fnmatch ("x?y", "x\250\271y", 0) == 0); /* "xüy" */
         ASSERT (fnmatch ("x?y", "x\201\060\211\070y", 0) == 0); /* "xßy" */
index b76a9bed281ce1c7b72d6322211e6b1a10907879..3e1d29eba76c217f9bc2d2ac7a3f56c8236ebc16 100644 (file)
@@ -361,7 +361,7 @@ main (int argc, char *argv[])
 
       case '5':
         /* Locale encoding is GB18030.  */
-        #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun)
+        #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun || (defined __GLIBC__ && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 13 && __GLIBC_MINOR__ <= 15))
         fputs ("Skipping test: The GB18030 converter in this system's iconv is broken.\n", stderr);
         return 77;
         #endif
index 93326085c28c2f0c97b6372c2e8b8da164103493..f7a5b24e2ad35013c23627c50cdf85d1f681a46c 100644 (file)
@@ -360,7 +360,7 @@ main (int argc, char *argv[])
 
       case '5':
         /* Locale encoding is GB18030.  */
-        #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun)
+        #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun || (defined __GLIBC__ && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 13 && __GLIBC_MINOR__ <= 15))
         fputs ("Skipping test: The GB18030 converter in this system's iconv is broken.\n", stderr);
         return 77;
         #endif
index 09ebf2e76f51488e573b2876a94f6b0aceedc6dd..74ba643eb4cc8f4206b6e9d7f22bccfb1c97b339 100644 (file)
@@ -315,7 +315,7 @@ main (int argc, char *argv[])
 
             case '5':
               /* Locale encoding is GB18030.  */
-              #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun)
+              #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun || (defined __GLIBC__ && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 13 && __GLIBC_MINOR__ <= 15))
               fputs ("Skipping test: The GB18030 converter in this system's iconv is broken.\n", stderr);
               return 77;
               #endif
index 54ed63fa0cf2cb0c7555a8ab1111c0cabbd9a326..0cbbbbd870faab69c913401cdbec0e5e551ff649 100644 (file)
@@ -315,7 +315,7 @@ main (int argc, char *argv[])
 
             case '5':
               /* Locale encoding is GB18030.  */
-              #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun)
+              #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun || (defined __GLIBC__ && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 13 && __GLIBC_MINOR__ <= 15))
               fputs ("Skipping test: The GB18030 converter in this system's iconv is broken.\n", stderr);
               return 77;
               #endif
index b0b4f5a719887295008b7ef8c4cf3a4dd0d00f26..7bcfe1b03cf2a14e97c123be272aa84858841dee 100644 (file)
@@ -263,7 +263,7 @@ main (int argc, char *argv[])
 
             case '5':
               /* Locale encoding is GB18030.  */
-              #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun)
+              #if GL_CHAR32_T_IS_UNICODE && (defined __NetBSD__ || defined __sun || (defined __GLIBC__ && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 13 && __GLIBC_MINOR__ <= 15))
               fputs ("Skipping test: The GB18030 converter in this system's iconv is broken.\n", stderr);
               return 77;
               #endif