view modules/pipe2-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 80a20352cd90
children b86e9061a6d0
line wrap: on
line source

Files:
tests/test-pipe2.c
tests/signature.h
tests/macros.h

Depends-on:
stdbool

configure.ac:

Makefile.am:
TESTS += test-pipe2
check_PROGRAMS += test-pipe2
test_pipe2_LDADD = $(LDADD) $(LIBSOCKET)