summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/SystemInfo.cpp
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2012-11-16 14:27:08 +0000
committerAndrew Stitcher <astitcher@apache.org>2012-11-16 14:27:08 +0000
commit9d277505a7640b1f03039009f5dd41c9a3678e5c (patch)
treefcaa5b1f56b557220a777454eda9d7736c5d0bcf /qpid/cpp/src/tests/SystemInfo.cpp
parent4f8712fd4dcd6edfd471f81f166b636e8b03f6e2 (diff)
downloadqpid-python-9d277505a7640b1f03039009f5dd41c9a3678e5c.tar.gz
NO-JIRA: Removed unused isLocalHost() code
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1410360 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/SystemInfo.cpp')
-rw-r--r--qpid/cpp/src/tests/SystemInfo.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/qpid/cpp/src/tests/SystemInfo.cpp b/qpid/cpp/src/tests/SystemInfo.cpp
index 12d8d3dba8..34f1ac408e 100644
--- a/qpid/cpp/src/tests/SystemInfo.cpp
+++ b/qpid/cpp/src/tests/SystemInfo.cpp
@@ -31,22 +31,6 @@ namespace tests {
QPID_AUTO_TEST_SUITE(SystemInfoTestSuite)
-QPID_AUTO_TEST_CASE(TestIsLocalHost) {
- // Test that local hostname and addresses are considered local
- Address a;
- BOOST_ASSERT(SystemInfo::getLocalHostname(a));
- BOOST_ASSERT(SystemInfo::isLocalHost(a.host));
- std::vector<Address> addrs;
- SystemInfo::getLocalIpAddresses(0, addrs);
- for (std::vector<Address>::iterator i = addrs.begin(); i != addrs.end(); ++i)
- BOOST_ASSERT(SystemInfo::isLocalHost(i->host));
- // Check some non-local addresses
- BOOST_ASSERT(!SystemInfo::isLocalHost("123.4.5.6"));
- BOOST_ASSERT(!SystemInfo::isLocalHost("nosuchhost"));
- BOOST_ASSERT(SystemInfo::isLocalHost("127.0.0.1"));
- BOOST_ASSERT(SystemInfo::isLocalHost("::1"));
-}
-
QPID_AUTO_TEST_SUITE_END()
}} // namespace qpid::tests