]> 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 17:07:45 +0000 (19:07 +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-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.

24 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-mbrtoc16.c
tests/test-mbrtoc32.c
tests/test-mbsnrtoc32s.c
tests/test-mbsrtoc32s.c
tests/test-mbstoc32s.c

index 082cbfa914583b285fc59fb9b4691c2d805d9938..26d25b4ef9a72acb8e6f4baa1faf1c98a419b651 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,31 @@
+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-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-13  Bruno Haible  <bruno@clisp.org>
 
        stdint: Fix configure test result with gcc 4.7 or 4.8.
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 b7617ee105e056dba9ba0005e250dad1ad72ad2d..0d346a1ccd17849958588fa42d31cc74ec923eb8 100644 (file)
@@ -199,7 +199,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 896987318178368f3bbf81a0a3f84f1d7642c7d1..7c444cca8f654cfd51bf7a3f47efcb748d34ce4f 100644 (file)
@@ -152,7 +152,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 ef096795243efc6c3f65e8d2505f810e5fa20826..5439acbaeb4596f04aadcddec69e77363c58c0a5 100644 (file)
@@ -160,7 +160,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 3d5c67a77f9d7faae345d7299313f828462189e6..6a6a73271fa0ee7bd30c3c389321cb2c54c7818a 100644 (file)
@@ -160,7 +160,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 53339d1fef26eceefc7a2ba588fad33230451f1f..76c32dff23b7b8dded3771a63be56e10bbc2fb40 100644 (file)
@@ -139,7 +139,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 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 03732dddb44c9f163783676351817fb104cb64f5..3ba2649c5568087e792c9e9642f590f92bf41857 100644 (file)
@@ -325,7 +325,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 f5a51ef34eb6285cbfbb528012ba0a5bef779088..e2c82eb265eb710efa6accbc7af0614a3c503b1d 100644 (file)
@@ -324,7 +324,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 342626d2a2419c0c5ec7cc83ba4abb932516233b..bc5cae05079cba589361e06fbd69b23e34755864 100644 (file)
@@ -247,7 +247,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 b1576d8da5700e73ed4def0a63bd247188f3c644..f026a7a0d0770da7fe66d1aa5d7ec189944aa527 100644 (file)
@@ -247,7 +247,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 09a1e072cf4b7fb5e17568b8ff9548f417a41304..932f3c6f258b829943172e354b90c7d9097eb236 100644 (file)
@@ -206,7 +206,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