diff options
author | Steve Bennetts <steve@lindenlab.com> | 2009-10-20 12:59:16 -0700 |
---|---|---|
committer | Steve Bennetts <steve@lindenlab.com> | 2009-10-20 12:59:16 -0700 |
commit | 85c4d40614b501d401159b9bb064a4f4c726265e (patch) | |
tree | ef610b296660a2969d4df60ef331a3b4b411b676 /indra/llmessage/tests/llhost_test.cpp | |
parent | a68b34eadf99c5875f2d7692185706e490e850bd (diff) | |
parent | b0dccf883ad67e43b9fac5bc81f7b79bf9c07f8c (diff) |
merge
Diffstat (limited to 'indra/llmessage/tests/llhost_test.cpp')
-rw-r--r-- | indra/llmessage/tests/llhost_test.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/indra/llmessage/tests/llhost_test.cpp b/indra/llmessage/tests/llhost_test.cpp index 6dbdcb86e7..e0c562dbf4 100644 --- a/indra/llmessage/tests/llhost_test.cpp +++ b/indra/llmessage/tests/llhost_test.cpp @@ -157,6 +157,7 @@ namespace tut template<> template<> void host_object::test<9>() { + skip("setHostByName(\"google.com\"); getHostName() -> (e.g.) \"yx-in-f100.1e100.net\""); std::string hostStr = "google.com"; LLHost host; host.setHostByName(hostStr); @@ -166,7 +167,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 |