view modules/nonblocking-socket-tests @ 17311:ab5135d5ff83

getcwd: break fdopendir + save_cwd recursive loop (Bug#13516) Reported for OS X 10.8.2 by Assaf Gordon in <http://bugs.gnu.org/13516>. * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if !HAVE_OPENAT && !HAVE_FDOPENDIR. * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c so that they can be kept in sync more easily. Avoid PATH_MAX test on the Hurd. Sync from test-getcwd.c for errno tests after mkdir or chdir failure. * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from lib/getcwd.c. (test_abort_bug): Do not test for the deep directory bug unless we have openat support. Avoid PATH_MAX test on the Hurd.
author Paul Eggert <eggert@cs.ucla.edu>
date Sun, 03 Feb 2013 21:28:30 -0800
parents 88ce25e2dffc
children ae28326ff93e
line wrap: on
line source

Files:
tests/test-nonblocking-socket.sh
tests/test-nonblocking-socket-main.c
tests/test-nonblocking-socket-child.c
tests/test-nonblocking-socket.h
tests/test-nonblocking-writer.h
tests/test-nonblocking-reader.h
tests/test-nonblocking-misc.h
tests/socket-server.h
tests/socket-client.h
tests/macros.h

Depends-on:
stdbool
unistd
sys_socket
nonblocking
wait-process
progname
environ
posix_spawnp
netinet_in
arpa_inet
socket
setsockopt
bind
getsockname
listen
accept
getsockopt
connect
gettimeofday
snprintf
vsnprintf
strerror
ssize_t
usleep
read
write

configure.ac:

Makefile.am:
TESTS += test-nonblocking-socket.sh
check_PROGRAMS += test-nonblocking-socket-main test-nonblocking-socket-child
test_nonblocking_socket_main_LDADD = $(LDADD) $(LIBSOCKET) @LIBINTL@
test_nonblocking_socket_child_LDADD = $(LDADD) $(LIBSOCKET)