view modules/nonblocking-tests @ 34227:85c6344a4f0e

nonblocking: reduce dependency No need to make nonblocking drag in sockets just for a test; test them if they are present and skip them otherwise. * tests/test-nonblocking.c: Only test sockets when in use. * modules/nonblocking-tests (Depends-on): Drop socket. (Makefile.am): Link even if sockets are not present. * modules/pipe2-tests (Makefile.am): Likewise. * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use. Signed-off-by: Eric Blake <eblake@redhat.com>
author Eric Blake <eblake@redhat.com>
date Fri, 08 Apr 2011 11:51:45 -0600
parents 2fff6e07d2da
children e34e9b75f470
line wrap: on
line source

Files:
tests/test-nonblocking.c
tests/macros.h

Depends-on:
close
pipe-posix

configure.ac:

Makefile.am:
TESTS += test-nonblocking
check_PROGRAMS += test-nonblocking
test_nonblocking_LDADD = $(LDADD) $(LIBSOCKET)