Mercurial > gnulib
view modules/getsockname-tests @ 39230:9626419f9db3
getsockname tests: More tests.
* tests/test-getsockname.c (open_server_socket): New function, mostly
copied from test-poll.c.
(main): Check that getsockname fills in addr.
* modules/getsockname-tests (Depends-on): Add the necessary
dependencies.
(test_getsockname_LDADD): Link with $(INET_PTON_LIB).
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 27 Jan 2018 08:52:31 +0100 |
parents | 57a19b7289b6 |
children |
line wrap: on
line source
Files: tests/test-getsockname.c tests/signature.h tests/macros.h Depends-on: netinet_in arpa_inet inet_pton errno perror sockets socket setsockopt bind listen configure.ac: Makefile.am: TESTS += test-getsockname check_PROGRAMS += test-getsockname test_getsockname_LDADD = $(LDADD) @LIBSOCKET@ $(INET_PTON_LIB)