Hash :
780b9e0b
Author :
Date :
2012-01-30T22:39:01
poll tests: Make test more robust. * tests/test-poll.c: Include macros.h. (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify return value of various I/O operations. * modules/poll-tests (Files): Add tests/macros.h.
Files:
tests/test-poll.c
tests/signature.h
tests/macros.h
Depends-on:
stdbool
sys_socket
netinet_in
arpa_inet
sys_ioctl
extensions
inet_pton
errno
perror
sockets
socket
bind
setsockopt
listen
connect
accept
ioctl
close
configure.ac:
AC_CHECK_HEADERS_ONCE([unistd.h sys/wait.h])
Makefile.am:
TESTS += test-poll
check_PROGRAMS += test-poll
test_poll_LDADD = $(LDADD) $(LIB_POLL) @LIBSOCKET@ $(INET_PTON_LIB)