Code Review Request: 7183800: TEST_BUG: Update tests to run on Ubuntu 12.04 (localhost is

Alan Bateman Alan.Bateman at
Mon Jul 16 10:56:39 UTC 2012

On 15/07/2012 19:54, Kurchi Subhra Hazra wrote:
> Hi,
>    Some tests in our test repository assume that 
> InetAddress.getLocalHost() will return However, with
> linux systems running Ubuntu 12.04 now returning as 
> localhost, these tests are failing. I have changed two
> of the NIO tests to remove their dependency on 
> InetAddress.getLocalHost(). A third test has been added to
> the ProblemList.txt since the changes required for it are more involved.
> Bug:
> Webrev:
As Chris pointed out, these tests bind to the wildcard address and you 
need a specific address to setup the address association, otherwise it's 
highly platform/implementation specific as to whether it will do as 
intended. So I think the proposed changes will cause problems where you 
can't connect to and so I think we need to look for another 

Given that none of the TCP tests fail then it suggests it mean that 
something else is going on, maybe something in the Ubuntu 12 
configuration. Do these tests run if IPv6 is disabled? We've had issues 
with some distributions where multicast tests fail and these have always 
come down to iptables blocking IPv6 multicast packets causing the tests 
to fail. I just wonder if we have something similar here.


More information about the core-libs-dev mailing list