]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
sethostname tests: Avoid test failure on Haiku.
authorCollin Funk <collin.funk1@gmail.com>
Thu, 24 Jul 2025 02:55:41 +0000 (19:55 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Thu, 24 Jul 2025 02:55:41 +0000 (19:55 -0700)
* tests/test-sethostname2.c (main): On Haiku, skip the "too long
hostname" test.
* doc/glibc-functions/sethostname.texi: Mention the Haiku problem.

ChangeLog
doc/glibc-functions/sethostname.texi
tests/test-sethostname2.c

index 0bca5616a4b4c59f2559b4ce2e835cf664526494..5a30fab82d9ebc3e67966d4277a741f0dce96a43 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2025-07-23  Collin Funk  <collin.funk1@gmail.com>
+
+       sethostname tests: Avoid test failure on Haiku.
+       * tests/test-sethostname2.c (main): On Haiku, skip the "too long
+       hostname" test.
+       * doc/glibc-functions/sethostname.texi: Mention the Haiku problem.
+
 2025-07-23  Bruno Haible  <bruno@clisp.org>
 
        run-test: Suggest a more reliable way of invoking valgrind.
index 51d1e3cb8a662b3ed635074662c58148b0130482..16a567279785dee6e4025aa99b7157409573fa72 100644 (file)
@@ -44,5 +44,6 @@ macOS 14, FreeBSD 14.0, MidnightBSD 3.0, Solaris 11 2010-11, Solaris 11 OpenIndi
 @item
 This function does not reject a too long host name on some platforms:
 @c https://cygwin.com/pipermail/cygwin/2024-May/255986.html
-Cygwin 3.5.3.
+@c https://dev.haiku-os.org/ticket/19692
+Cygwin 3.5.3, Haiku.
 @end itemize
index df10cd3741b1e9f93df0d92be5efa3fd8990e407..01a4053bfaa1fa41a85791c107e53800d84f7a17 100644 (file)
@@ -107,9 +107,10 @@ main (int argc, _GL_UNUSED char *argv[])
 #endif
     }
 
-  /* Known Cygwin bug:
-     <https://cygwin.com/pipermail/cygwin/2024-May/255986.html>  */
-#if !defined __CYGWIN__
+  /* Known bug on Cygwin and Haiku:
+     <https://cygwin.com/pipermail/cygwin/2024-May/255986.html>
+     <https://dev.haiku-os.org/ticket/19692>.  */
+#if !(defined __CYGWIN__ || defined __HAIKU__)
   {
     char longname[HOST_NAME_MAX + 2];