summaryrefslogtreecommitdiffstats
path: root/tests/test_echo_tcp_socket.c
Commit message (Collapse)AuthorAgeFilesLines
* tests: Remove extra test by moving getsockname() to anotherAnoop C S2018-03-261-69/+0
| | | | | | | | | | | | | | test_echo_tcp_socket currently tests socket() and getsockname() network calls. The test name was misleading as it does not require echo server to be setup. Moreover it failed to create socket_wrapper directory which is the pre-requisite for testing with libsocket_wrapper. Therefore it is better to integrate getsockname() test into existing test_tcp_listen test and remove useless test_echo_tcp_socket Signed-off-by: Anoop C S <anoopcs@redhat.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlet <abartlet@samba.org>
* tests: Fix passing pointer of incompatible typeAndreas Schneider2015-08-171-1/+1
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* tests: Migrate to new cmocka APIAndreas Schneider2015-08-111-4/+4
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* tests: Pass the sockaddr structure to system functions.Andreas Schneider2014-09-021-1/+1
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* tests: Fix type punning warnings.Andreas Schneider2014-09-011-10/+10
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* tests: Add test that getsockname is correct after socket().Andreas Schneider2014-05-311-0/+69
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>