summaryrefslogtreecommitdiff
path: root/indra/llmessage/tests/llhost_test.cpp
diff options
context:
space:
mode:
authorSteve Bennetts <steve@lindenlab.com>2009-10-21 18:49:19 -0700
committerSteve Bennetts <steve@lindenlab.com>2009-10-21 18:49:19 -0700
commit642d368eccd662494a4958a50ba2bd3301b5207e (patch)
tree0aaa9d2981260051009e765a6171ad328f031183 /indra/llmessage/tests/llhost_test.cpp
parentc7786aa5b614d1c88359bacbe9bd447f5acdd84c (diff)
parente25395e10f5abbed1ed7bc3e4a7fc892070ddc50 (diff)
merge
Diffstat (limited to 'indra/llmessage/tests/llhost_test.cpp')
-rw-r--r--indra/llmessage/tests/llhost_test.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/indra/llmessage/tests/llhost_test.cpp b/indra/llmessage/tests/llhost_test.cpp
index 2424dbcb6b..f7e7eee88b 100644
--- a/indra/llmessage/tests/llhost_test.cpp
+++ b/indra/llmessage/tests/llhost_test.cpp
@@ -157,7 +157,7 @@ namespace tut
template<> template<>
void host_object::test<9>()
{
- std::string hostStr = "linux.org";
+ skip("setHostByName(\"linux.org\"); getHostName() -> (e.g.) \"yx-in-f100.1e100.net\"");
LLHost host;
host.setHostByName(hostStr);
@@ -166,7 +166,15 @@ namespace tut
// the main domain name and not do the exact compare
std::string hostname = host.getHostName();
- ensure("getHostName failed", hostname.find(hostStr) != std::string::npos);
+ try
+ {
+ ensure("getHostName failed", hostname.find(hostStr) != std::string::npos);
+ }
+ catch (const std::exception&)
+ {
+ std::cerr << "set '" << hostStr << "'; reported '" << hostname << "'" << std::endl;
+ throw;
+ }
}
// setHostByName for dotted IP