Skip to content
Snippets Groups Projects
Commit 7aff3d08 authored by Nat Goodspeed's avatar Nat Goodspeed
Browse files

Disabling dubious getHostName() test as explained in comments

parent 6f44e1de
No related branches found
No related tags found
No related merge requests found
...@@ -166,7 +166,21 @@ namespace tut ...@@ -166,7 +166,21 @@ namespace tut
// the main domain name and not do the exact compare // the main domain name and not do the exact compare
std::string hostname = host.getHostName(); 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 // setHostByName for dotted IP
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment