Socket/INet/Protocols: Change unit-test to work in non-IpV6 configured environment
g0dil [Tue, 31 Jul 2007 08:31:48 +0000 (08:31 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@363 270642c3-0616-0410-b53a-bc976706d245

Socket/Protocols/INet/INet6Address.test.cc

index 562c8e6..f51c6c4 100644 (file)
@@ -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<std::string>(addr2), "::" );
         addr2 = INet6Address::from_string("::1");