]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
tests: Remove support for OSF/1.
authorBruno Haible <bruno@clisp.org>
Tue, 9 Sep 2025 10:49:41 +0000 (12:49 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 9 Sep 2025 10:49:49 +0000 (12:49 +0200)
* tests/test-mbmemcasecmp.h (test_iso_8859_1): Remove code for OSF/1.
* tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Likewise.
* tests/test-select.h (test_bad_fd): Likewise.
* tests/test-striconveha.c (main): Likewise.
* tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
* tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
* tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
* tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
* tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
* tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.

ChangeLog
tests/test-mbmemcasecmp.h
tests/test-nonblocking-pipe.h
tests/test-select.h
tests/test-striconveha.c
tests/uniconv/test-u16-conv-from-enc.c
tests/uniconv/test-u16-strconv-from-enc.c
tests/uniconv/test-u32-conv-from-enc.c
tests/uniconv/test-u32-strconv-from-enc.c
tests/uniconv/test-u8-conv-from-enc.c
tests/uniconv/test-u8-strconv-from-enc.c

index 9f711d0ec988a0a8aa04be450aba335b7c5a60cf..6d5607f8503bb4fce66ad0c3330f57011b3391e1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,17 @@
 2025-09-09  Bruno Haible  <bruno@clisp.org>
 
+       tests: Remove support for OSF/1.
+       * tests/test-mbmemcasecmp.h (test_iso_8859_1): Remove code for OSF/1.
+       * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Likewise.
+       * tests/test-select.h (test_bad_fd): Likewise.
+       * tests/test-striconveha.c (main): Likewise.
+       * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
+       * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
+       * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
+       * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
+       * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
+       * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
+
        wcsrtombs: Remove support for OSF/1.
        * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Remove macro.
        (gl_FUNC_WCSRTOMBS): Don't invoke it. Don't define
index 0d18d75d51c60d42d3e6c3c4da61872faec85e35..d1e5b174ff90972829349ce171e7844c08dbd43f 100644 (file)
@@ -73,7 +73,6 @@ test_ascii (int (*my_casecmp) (const char *, size_t, const char *, size_t))
 static void
 test_iso_8859_1 (int (*my_casecmp) (const char *, size_t, const char *, size_t), bool assume_byte_values)
 {
-  #if ! defined __osf__ /* This test fails on OSF/1 5.1.  */
   {
     static const char input1[] = { 'H', 0xF6, 'h', 'l', 'e' };
     static const char input2[] = { 'H', 0xD6, 'h', 'L', 'e' };
@@ -104,7 +103,6 @@ test_iso_8859_1 (int (*my_casecmp) (const char *, size_t, const char *, size_t),
         ASSERT (my_casecmp (input2, SIZEOF (input2), input5, SIZEOF (input5)) > 0);
       }
   }
-  #endif
 
   #if 0 /* This functionality requires ulc_casecmp.  */
   /* Uppercasing can increase the number of Unicode characters.  */
index db4e59a31f4c0e8a8d47c5d61775d67de00baa05..7015d91668d7d987ee3a6b1a56ba5286634d5b1d 100644 (file)
      AIX                             >= 32769
      HP-UX                           >= 8193
      IRIX                            >= 10241
-     OSF/1                           >= 262145
      Solaris <= 7                    >= 10241
      Solaris >= 8                    >= 20481
      z/OS                            >= 131073
      Cygwin                          >= 65537
      native Windows                  >= 4097 (depends on the _pipe argument)
  */
-#if defined __MVS__ || defined __osf__ || (defined __linux__ && (defined __ia64__ || defined __mips__))
+#if defined __MVS__ || (defined __linux__ && (defined __ia64__ || defined __mips__))
 # define PIPE_DATA_BLOCK_SIZE 270000
 #elif defined __linux__ && defined __sparc
 # define PIPE_DATA_BLOCK_SIZE 140000
index 3f7142c1f6a95866829cf0646f5e8e442c248877..7123ef6b4c764edd5439dabab7e189ce1c4bee2e 100644 (file)
@@ -285,8 +285,8 @@ do_select_bad_fd_nowait (int fd, int ev, select_fn my_select)
 static void
 test_bad_fd (select_fn my_select)
 {
-  /* This tests fails on OSF/1 and native Windows, even with fd = 16.  */
-#if !(defined __osf__ || defined WINDOWS_NATIVE)
+  /* This tests fails on native Windows, even with fd = 16.  */
+#if !defined WINDOWS_NATIVE
   int fd;
 
   /* On Linux, Mac OS X, *BSD, values of fd like 99 or 399 are discarded
index 49f42e8779f42cbec3bf883ae112560cdc56a51f..d32ed7223be3d813e58b79d5b3f21432d61b4791 100644 (file)
@@ -309,7 +309,7 @@ main ()
 
   /* autodetect_jp is only supported when iconv() support ISO-2022-JP-2.  */
 # if (defined _LIBICONV_VERSION && !(_LIBICONV_VERSION == 0x10b && defined __APPLE__)) \
-     || !(defined _AIX || defined __sgi || defined __hpux || defined __osf__ || defined __sun)
+     || !(defined _AIX || defined __sgi || defined __hpux || defined __sun)
   if (iconv_supports_encoding ("ISO-2022-JP-2"))
     {
       /* Test conversions from autodetect_jp to UTF-8.  */
@@ -549,7 +549,7 @@ main ()
 
   /* autodetect_jp is only supported when iconv() support ISO-2022-JP-2.  */
 # if (defined _LIBICONV_VERSION && !(_LIBICONV_VERSION == 0x10b && defined __APPLE__)) \
-     || !(defined _AIX || defined __sgi || defined __hpux || defined __osf__ || defined __sun)
+     || !(defined _AIX || defined __sgi || defined __hpux || defined __sun)
   if (iconv_supports_encoding ("ISO-2022-JP-2"))
     {
       /* Test conversions from autodetect_jp to UTF-8.  */
index 7465531ce9e0f21434243be6e30e40e2db18e5a4..9a6db116bec371411a2b95e30da938f017ed8eb6 100644 (file)
@@ -118,7 +118,7 @@ main ()
 
   /* autodetect_jp is only supported when iconv() support ISO-2022-JP-2.  */
 # if (defined _LIBICONV_VERSION && !(_LIBICONV_VERSION == 0x10b && defined __APPLE__)) \
-     || !(defined _AIX || defined __sgi || defined __hpux || defined __osf__ || defined __sun)
+     || !(defined _AIX || defined __sgi || defined __hpux || defined __sun)
   if (iconv_supports_encoding ("ISO-2022-JP-2"))
     {
       /* Test conversions from autodetect_jp to UTF-16.  */
index 214f55e8bec139985df328cb03ade146e3b76dec..7481f4862143c9f2748a0bcc7836dfd89cbaf61b 100644 (file)
@@ -72,7 +72,7 @@ main ()
 
   /* autodetect_jp is only supported when iconv() support ISO-2022-JP-2.  */
 # if (defined _LIBICONV_VERSION && !(_LIBICONV_VERSION == 0x10b && defined __APPLE__)) \
-     || !(defined _AIX || defined __sgi || defined __hpux || defined __osf__ || defined __sun)
+     || !(defined _AIX || defined __sgi || defined __hpux || defined __sun)
   if (iconv_supports_encoding ("ISO-2022-JP-2"))
     {
       /* Test conversions from autodetect_jp to UTF-16.  */
index 7465ce8f5261dd0a00e282649ca971213cb87438..53c16186408b9c8eb20cabd7633502ff69e0328d 100644 (file)
@@ -118,7 +118,7 @@ main ()
 
   /* autodetect_jp is only supported when iconv() support ISO-2022-JP-2.  */
 # if (defined _LIBICONV_VERSION && !(_LIBICONV_VERSION == 0x10b && defined __APPLE__)) \
-     || !(defined _AIX || defined __sgi || defined __hpux || defined __osf__ || defined __sun)
+     || !(defined _AIX || defined __sgi || defined __hpux || defined __sun)
   if (iconv_supports_encoding ("ISO-2022-JP-2"))
     {
       /* Test conversions from autodetect_jp to UTF-16.  */
index d6409c608c45784193b070733df039a4d807b381..7c50029d9550130219b67d37494451f77fbe0910 100644 (file)
@@ -72,7 +72,7 @@ main ()
 
   /* autodetect_jp is only supported when iconv() support ISO-2022-JP-2.  */
 # if (defined _LIBICONV_VERSION && !(_LIBICONV_VERSION == 0x10b && defined __APPLE__)) \
-     || !(defined _AIX || defined __sgi || defined __hpux || defined __osf__ || defined __sun)
+     || !(defined _AIX || defined __sgi || defined __hpux || defined __sun)
   if (iconv_supports_encoding ("ISO-2022-JP-2"))
     {
       /* Test conversions from autodetect_jp to UTF-16.  */
index 9b676a0389fe2c1881130e354848f5c3bb60e0fc..53bf0cf9c9a3a313e2f3a1177a7c8b0d6c3f83c3 100644 (file)
@@ -113,7 +113,7 @@ main ()
 
   /* autodetect_jp is only supported when iconv() support ISO-2022-JP-2.  */
 # if (defined _LIBICONV_VERSION && !(_LIBICONV_VERSION == 0x10b && defined __APPLE__)) \
-     || !(defined _AIX || defined __sgi || defined __hpux || defined __osf__ || defined __sun)
+     || !(defined _AIX || defined __sgi || defined __hpux || defined __sun)
   if (iconv_supports_encoding ("ISO-2022-JP-2"))
     {
       /* Test conversions from autodetect_jp to UTF-8.  */
index 610681c6d071424b738464abef866b9c6085d642..b118bd6f0eaace4e83bab575c3a661201015e433 100644 (file)
@@ -63,7 +63,7 @@ main ()
 
   /* autodetect_jp is only supported when iconv() support ISO-2022-JP-2.  */
 # if (defined _LIBICONV_VERSION && !(_LIBICONV_VERSION == 0x10b && defined __APPLE__)) \
-     || !(defined _AIX || defined __sgi || defined __hpux || defined __osf__ || defined __sun)
+     || !(defined _AIX || defined __sgi || defined __hpux || defined __sun)
   if (iconv_supports_encoding ("ISO-2022-JP-2"))
     {
       /* Test conversions from autodetect_jp to UTF-8.  */