From: Collin Funk Date: Thu, 24 Apr 2025 03:29:25 +0000 (-0700) Subject: tsearch tests: Disable tfind signature check on Cygwin. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=30c887298af4a59915c98524f7a1909e4d6e874c;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index 3ee1063908..26d9817c59 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2025-04-23 Collin Funk + + 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 random_r tests: Disable signature check on Haiku. diff --git a/doc/posix-functions/tfind.texi b/doc/posix-functions/tfind.texi index 60f76605ea..225b51f02b 100644 --- a/doc/posix-functions/tfind.texi +++ b/doc/posix-functions/tfind.texi @@ -16,4 +16,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 diff --git a/tests/test-tsearch.c b/tests/test-tsearch.c index 292ff0d3ad..ea41505dd6 100644 --- a/tests/test-tsearch.c +++ b/tests/test-tsearch.c @@ -22,8 +22,10 @@ #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 *,