diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2009-10-20 11:34:46 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2009-10-20 11:34:46 -0400 |
commit | aa75245a1aee3b64aeed31744e58fe96afa1ce7e (patch) | |
tree | 843dbbd193417ddd2f8dd6afd3c8137b4ed3d1a0 /indra/llmessage | |
parent | d9e61b280f834445e30cce65c61455688ba58541 (diff) | |
parent | 7aff3d0842475de4b0bb3bc33d5b4cc86a056623 (diff) |
Automated merge with ssh://hg.lindenlab.com/viewer/viewer-2-0/
Diffstat (limited to 'indra/llmessage')
-rw-r--r-- | indra/llmessage/tests/llhost_test.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/indra/llmessage/tests/llhost_test.cpp b/indra/llmessage/tests/llhost_test.cpp index 6dbdcb86e7..4c9e75456a 100644 --- a/indra/llmessage/tests/llhost_test.cpp +++ b/indra/llmessage/tests/llhost_test.cpp @@ -166,7 +166,21 @@ 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); +/*==========================================================================*| + // nat 2009-10-20: not sure this ensure() is such a good idea, at + // least with "google.com". The logic below is failing for me with: + // set 'google.com'; reported 'yx-in-f100.1e100.net' + // Disabling test until we can replace it with something more robust. + 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 |