summaryrefslogtreecommitdiffstats
path: root/tests/torture.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2013-12-17 14:44:54 +0100
committerAndreas Schneider <asn@samba.org>2013-12-17 14:44:54 +0100
commit0d87b9e18aa400844c18639e575d95b2f98266d5 (patch)
tree408136031e1f8c784d797f9d10fb577e55fa666e /tests/torture.c
parente778fa214fb69b2119f7f5e5ebbf21476cd8b0a8 (diff)
downloadsocket_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.c14
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;