* tests/test-passfd.c (main): Always fail on Cygwin.
* modules/passfd-tests (Depends-on): Add test-xfail.
(Makefile.am): Expect that test-passfd fails on Cygwin.
+2024-05-23 Bruno Haible <bruno@clisp.org>
+
+ passfd tests: Mark as expected failure on Cygwin.
+ * tests/test-passfd.c (main): Always fail on Cygwin.
+ * modules/passfd-tests (Depends-on): Add test-xfail.
+ (Makefile.am): Expect that test-passfd fails on Cygwin.
+
2024-05-23 Bruno Haible <bruno@clisp.org>
renameatu: Work around Cygwin 3.4.6 bug.
Depends-on:
sys_wait
+test-xfail
configure.ac:
AC_CHECK_DECLS_ONCE([alarm])
TESTS += test-passfd
check_PROGRAMS += test-passfd
test_passfd_LDADD = $(LDADD) @LIBSOCKET@
+
+if OS_IS_CYGWIN
+XFAIL_TESTS += test-passfd
+endif
int
main ()
{
-#if HAVE_SOCKETPAIR
+#if defined __CYGWIN__
+ /* Cygwin does not support file-descriptor passing: As on Cygwin 3.5.3,
+ the only cmsg_type that winsup/cygwin/fhandler/socket_unix.cc handles
+ is SCM_CREDENTIALS. Not SCM_RIGHTS. */
+ return 90;
+#elif HAVE_SOCKETPAIR
int pair[2];
int ret;
pid_t pid;