summaryrefslogtreecommitdiffstats
path: root/tests/torture.h
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2013-12-20 16:37:59 +0100
committerAndreas Schneider <asn@samba.org>2013-12-20 17:12:26 +0100
commit379af0763be3c25d8b4ec75220d0f98007f9328b (patch)
treee6dd9f86fcc1d7aaeaec10c849234835839d8668 /tests/torture.h
parent33404b45bcbca1691d3d9fb8bb5b4f2c15caef0e (diff)
downloadsocket_wrapper-379af0763be3c25d8b4ec75220d0f98007f9328b.tar.gz
socket_wrapper-379af0763be3c25d8b4ec75220d0f98007f9328b.tar.xz
socket_wrapper-379af0763be3c25d8b4ec75220d0f98007f9328b.zip
torture: Add torture_server_address().
This should make it easier to run the test without socket_wrapper.
Diffstat (limited to 'tests/torture.h')
-rw-r--r--tests/torture.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/torture.h b/tests/torture.h
index fd4ffe6..be100f7 100644
--- a/tests/torture.h
+++ b/tests/torture.h
@@ -58,6 +58,8 @@ struct torture_state {
#define ZERO_STRUCT(x) memset((char *)&(x), 0, sizeof(x))
#endif
+const char *torture_server_address(int domain);
+
void torture_setup_socket_dir(void **state);
void torture_setup_echo_srv_udp_ipv4(void **state);
void torture_setup_echo_srv_udp_ipv6(void **state);