diff options
author | Andreas Schneider <asn@samba.org> | 2013-12-17 14:44:54 +0100 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2013-12-17 14:44:54 +0100 |
commit | 0d87b9e18aa400844c18639e575d95b2f98266d5 (patch) | |
tree | 408136031e1f8c784d797f9d10fb577e55fa666e /tests/torture.c | |
parent | e778fa214fb69b2119f7f5e5ebbf21476cd8b0a8 (diff) | |
download | socket_wrapper-0d87b9e18aa400844c18639e575d95b2f98266d5.tar.gz socket_wrapper-0d87b9e18aa400844c18639e575d95b2f98266d5.tar.xz socket_wrapper-0d87b9e18aa400844c18639e575d95b2f98266d5.zip |
torture: Add tcp function to setup echo server.
Diffstat (limited to 'tests/torture.c')
-rw-r--r-- | tests/torture.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/torture.c b/tests/torture.c index 8cfd538..d44fa25 100644 --- a/tests/torture.c +++ b/tests/torture.c @@ -125,6 +125,20 @@ void torture_setup_echo_srv_udp_ipv6(void **state) torture_setup_echo_srv_ip(state, TORTURE_ECHO_SRV_IPV6, SOCK_DGRAM); } +void torture_setup_echo_srv_tcp_ipv4(void **state) +{ + torture_setup_echo_srv_ip(state, + TORTURE_ECHO_SRV_IPV4, + SOCK_STREAM); +} + +void torture_setup_echo_srv_tcp_ipv6(void **state) +{ + torture_setup_echo_srv_ip(state, + TORTURE_ECHO_SRV_IPV6, + SOCK_STREAM); +} + void torture_teardown_socket_dir(void **state) { struct torture_state *s = *state; |