]> Savannah Git Hosting - gnulib.git/commitdiff
tsearch tests: Disable tfind signature check on Cygwin.
authorCollin Funk <collin.funk1@gmail.com>
Thu, 24 Apr 2025 03:29:25 +0000 (20:29 -0700)
committerBruno Haible <bruno@clisp.org>
Sat, 3 May 2025 14:06:21 +0000 (16:06 +0200)
* tests/test-tsearch.c [__CYGWIN__]: Skip the tfind signature check.
* doc/posix-functions/tfind.texi: Mention the Cygwin signature.

ChangeLog
doc/posix-functions/tfind.texi
tests/test-tsearch.c

index 10925dd95b9093bbf6b844bb97597b41e2cc8a2b..0220d602399577ce10078ccca99df9bf1a8e3ae8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-04-23  Collin Funk  <collin.funk1@gmail.com>
+
+       tsearch tests: Disable tfind signature check on Cygwin.
+       * tests/test-tsearch.c [__CYGWIN__]: Skip the tfind signature check.
+       * doc/posix-functions/tfind.texi: Mention the Cygwin signature.
+
 2025-04-22  Collin Funk  <collin.funk1@gmail.com>
 
        random_r tests: Disable signature check on Haiku.
index 384b08fd608d7d5408b1911a677b47e5005d7e2c..416aa42498e7d61acacb8a5d74c5c6cc5970fe4b 100644 (file)
@@ -15,4 +15,9 @@ Minix 3.1.8, mingw, MSVC 14, Android 4.0.4.
 
 Portability problems not fixed by Gnulib:
 @itemize
+@item
+This function uses @code{void **} instead of @code{void *const *} for
+the second parameter on some platforms:
+@c https://cygwin.com/pipermail/cygwin/2025-April/258032.html
+Cygwin.
 @end itemize
index a741f22b44050e5232066ff6f08fc7be37fafe9a..ea41505dd62b6bffdd998e51b10bcd6d60167911 100644 (file)
@@ -1,5 +1,5 @@
 /* Test program for tsearch et al.
-   Copyright (C) 1997, 2000-2001, 2007-2024 Free Software Foundation, Inc.
+   Copyright (C) 1997, 2000-2001, 2007-2025 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software: you can redistribute it and/or
 #include "signature.h"
 SIGNATURE_CHECK (tdelete, void *, (void const *, void **,
                                    int (*) (void const *, void const *)));
+#if !defined __CYGWIN__
 SIGNATURE_CHECK (tfind, void *, (void const *, void * const *,
                                  int (*) (void const *, void const *)));
+#endif
 SIGNATURE_CHECK (tsearch, void *, (void const *, void **,
                                    int (*) (void const *, void const *)));
 SIGNATURE_CHECK (twalk, void, (void const *,