diff options
author | Steve Bennetts <steve@lindenlab.com> | 2009-10-23 12:17:30 -0700 |
---|---|---|
committer | Steve Bennetts <steve@lindenlab.com> | 2009-10-23 12:17:30 -0700 |
commit | 80b682d4b4dd1256ee09dd3327d2c51e3adee0b5 (patch) | |
tree | 751731e4b23e08264caf6436ae2c60cff8094240 /indra/llmessage/tests/llhost_test.cpp | |
parent | b43771cad585cb9820941eb1b24b67390eaa9435 (diff) | |
parent | 127b428863707c882fbf4d30699321b8a2365644 (diff) |
merge
Diffstat (limited to 'indra/llmessage/tests/llhost_test.cpp')
-rw-r--r-- | indra/llmessage/tests/llhost_test.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/indra/llmessage/tests/llhost_test.cpp b/indra/llmessage/tests/llhost_test.cpp index 2424dbcb6b..7e5c3a117b 100644 --- a/indra/llmessage/tests/llhost_test.cpp +++ b/indra/llmessage/tests/llhost_test.cpp @@ -157,7 +157,8 @@ namespace tut template<> template<> void host_object::test<9>() { - std::string hostStr = "linux.org"; +// skip("setHostByName(\"google.com\"); getHostName() -> (e.g.) \"yx-in-f100.1e100.net\""); + std::string hostStr = "linux.org"; 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 |