diff options
| author | Nat Goodspeed <nat@lindenlab.com> | 2009-10-20 11:32:45 -0400 | 
|---|---|---|
| committer | Nat Goodspeed <nat@lindenlab.com> | 2009-10-20 11:32:45 -0400 | 
| commit | 7aff3d0842475de4b0bb3bc33d5b4cc86a056623 (patch) | |
| tree | 60abd1b1154d422bc1ecc0ece4c874b4d59d793a /indra/llmessage/tests | |
| parent | 6f44e1de9bc22b9f944686472e7e46239c14c225 (diff) | |
 Disabling dubious getHostName() test as explained in comments
Diffstat (limited to 'indra/llmessage/tests')
| -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 5dc9ce42ee..ebe61fcad3 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 | 
