From: g0dil Date: Tue, 31 Jul 2007 08:31:48 +0000 (+0000) Subject: Socket/INet/Protocols: Change unit-test to work in non-IpV6 configured environment X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=5017bedd35267106cefeea87664778917026afdd;p=senf.git Socket/INet/Protocols: Change unit-test to work in non-IpV6 configured environment git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@363 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Socket/Protocols/INet/INet6Address.test.cc b/Socket/Protocols/INet/INet6Address.test.cc index 562c8e6..f51c6c4 100644 --- a/Socket/Protocols/INet/INet6Address.test.cc +++ b/Socket/Protocols/INet/INet6Address.test.cc @@ -57,7 +57,7 @@ BOOST_AUTO_UNIT_TEST(inet6Address) BOOST_CHECK_EQUAL( addr1[13], 14 ); BOOST_CHECK_EQUAL( addr1[14], 15 ); BOOST_CHECK_EQUAL( addr1[15], 0 ); - BOOST_CHECK_EQUAL( INet6Address::from_string("ip6-localhost"), INet6Address::Loopback ); + BOOST_CHECK( INet6Address::from_string("www.6bone.net") != INet6Address::None ); INet6Address addr2; BOOST_CHECK_EQUAL( boost::lexical_cast(addr2), "::" ); addr2 = INet6Address::from_string("::1");