From 7fca6d05cf1c1111f18f9ae584e081f3976ccc84 Mon Sep 17 00:00:00 2001 From: Tristan Matthews <tristan.matthews@savoirfairelinux.com> Date: Thu, 11 Sep 2014 12:01:03 -0400 Subject: [PATCH] test: don't test ipv6 if it's disabled It will fail. Refs #54929 Change-Id: I0399c8b0c20e27076647cb3059394a6f909d4d3b --- daemon/test/iptest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon/test/iptest.cpp b/daemon/test/iptest.cpp index 5cc3fe4145..888dac637d 100644 --- a/daemon/test/iptest.cpp +++ b/daemon/test/iptest.cpp @@ -66,6 +66,7 @@ void IpTest::testIpAddr() pj_sockaddr_set_port(ip.pjPtr(), 5042); CPPUNIT_ASSERT(ip.getPort() == 5042); +#if HAVE_IPV6 const in6_addr native_ip = {{ 0x3f, 0xfe, 0x05, 0x01, 0x00, 0x08, 0x00, 0x00, @@ -82,6 +83,7 @@ void IpTest::testIpAddr() CPPUNIT_ASSERT(IpAddr::isValid("[3ffe:0501:0008:0000:0260:97ff:fe40:efab]")); CPPUNIT_ASSERT(IpAddr::isValid("[3ffe:0501:0008:0000:0260:97ff:fe40:efab]:4242")); CPPUNIT_ASSERT(IpAddr::isValid("[3ffe:501:8::260:97ff:fe40:efab]:4242")); +#endif } void IpTest::testIpAddrOst() -- GitLab