]> Savannah Git Hosting - gnulib.git/commitdiff
passfd tests: Mark as expected failure on Cygwin.
authorBruno Haible <bruno@clisp.org>
Thu, 23 May 2024 13:41:52 +0000 (15:41 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 23 May 2024 13:46:11 +0000 (15:46 +0200)
* 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.

ChangeLog
modules/passfd-tests
tests/test-passfd.c

index b3e5bcb5ee04726a245d8efc346e0bdd43a5b503..373275610f546d602f584ac5e6f282c9543b2c89 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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.
index 9bb1c5c1bea5caef7282d7c5adc381df4aa87245..4d304349f1e44a6eb6554410bc54a847773217d3 100644 (file)
@@ -4,6 +4,7 @@ tests/macros.h
 
 Depends-on:
 sys_wait
+test-xfail
 
 configure.ac:
 AC_CHECK_DECLS_ONCE([alarm])
@@ -13,3 +14,7 @@ Makefile.am:
 TESTS += test-passfd
 check_PROGRAMS += test-passfd
 test_passfd_LDADD = $(LDADD) @LIBSOCKET@
+
+if OS_IS_CYGWIN
+XFAIL_TESTS += test-passfd
+endif
index 2e11439d7e179ec64dd67a267739b62bca6dddf9..86623a6da88d39487fc9c66af8fbd826de104879 100644 (file)
 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;