modules/passfd-tests


Log

Author Commit Date CI Message
Eric Blake 5a9e46ab 2011-04-21T14:53:49 passfd: fix test regression on Linux * modules/passfd-tests (configure.ac): Correct socketpair check. Signed-off-by: Eric Blake <eblake@redhat.com>
Eric Blake 06d76f63 2011-04-21T07:16:20 passfd: allow compilation on mingw The passfd module now skips on mingw, rather than failing to compile. It may be nice to add a sendmsg and recvmsg module in the future, but for now passfd is the only client that cares. * modules/sys_socket (Depends-on): Add sys_uio. * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct iovec and a minimal struct msghdr. * tests/test-sys_socket.c (main): Enhance test. * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg. * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is guaranteed to provide what we need. (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg. * modules/passfd-tests (Depends-on): Add sys_wait. * tests/test-passfd.c (main): Skip test on mingw, for now. * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the partial 'struct msghdr' implementation. Signed-off-by: Eric Blake <eblake@redhat.com>
Eric Blake f607f2cd 2011-03-30T14:46:02 passfd: fix incorrect sendmsg arguments The unit test hung on NetBSD, which pointed out a couple of bugs. * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and incorrect msg_controllen value. * modules/passfd-tests (Depends-on): Check for alarm. * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test. Reported by Bastien ROUCARIES. Signed-off-by: Eric Blake <eblake@redhat.com>
Bruno Haible 50f69b55 2011-03-14T00:04:20 passfd: Fix link error on Solaris. * modules/passfd (Description): Correct. (Depends-on): Add socketlib. (Link): New section. * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
Bastien Roucariès 52cbcffe 2011-03-13T19:52:34 passfd module, part 4. * modules/passfd-tests: New file. * tests/test-passfd.c: New file.