aboutsummaryrefslogtreecommitdiff
path: root/tests/test_echo_tcp_write_read.c
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-12-20 16:53:59 +0100
committerJakub Hrozek <jhrozek@redhat.com>2013-12-20 17:26:37 +0100
commit789118aee6683b8bfafac4ea24c6c9a160ad9e59 (patch)
tree3d698147b74469c3f9d07527a9b9cfe0a688e9d5 /tests/test_echo_tcp_write_read.c
parentb11ceabbfc505ab08f101d4a5ca6b498c30c98d1 (diff)
downloadsocket_wrapper-789118aee6683b8bfafac4ea24c6c9a160ad9e59.tar.gz
socket_wrapper-789118aee6683b8bfafac4ea24c6c9a160ad9e59.tar.xz
socket_wrapper-789118aee6683b8bfafac4ea24c6c9a160ad9e59.zip
tests: Add an ifdef around static IPv6 only functions
This would prevent an uninitialized function warning in case IPv6 was not available.
Diffstat (limited to 'tests/test_echo_tcp_write_read.c')
-rw-r--r--tests/test_echo_tcp_write_read.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_echo_tcp_write_read.c b/tests/test_echo_tcp_write_read.c
index e2ffe91..4437de9 100644
--- a/tests/test_echo_tcp_write_read.c
+++ b/tests/test_echo_tcp_write_read.c
@@ -20,10 +20,12 @@ static void setup_echo_srv_tcp_ipv4(void **state)
torture_setup_echo_srv_tcp_ipv4(state);
}
+#ifdef HAVE_IPV6
static void setup_echo_srv_tcp_ipv6(void **state)
{
torture_setup_echo_srv_tcp_ipv6(state);
}
+#endif
static void teardown(void **state)
{