On Wed, Jun 14, 2017 at 12:13:33PM -0300, Philippe Mathieu-Daudé wrote:
> Hi Daniel,
> 
> On 06/14/2017 07:50 AM, Daniel P. Berrange wrote:
> > On Mon, Jun 12, 2017 at 02:14:19PM +0100, Peter Maydell wrote:
> > > On 7 June 2017 at 18:54, Daniel P. Berrange <berra...@redhat.com> wrote:
> > > > The following changes since commit 
> > > > 0db1851becbefe3e50cfc03776fb1f75817376af:
> > > > 
> > > >   Merge remote-tracking branch 
> > > > 'remotes/vivier/tags/m68k-for-2.10-pull-request' into staging 
> > > > (2017-06-07 11:56:00 +0100)
> > > > 
> > > > are available in the git repository at:
> > > > 
> > > >   git://github.com/berrange/qemu tags/pull-sockets-2017-06-07-1
> > > > 
> > > > for you to fetch changes up to 8dd2c27927b93aa352c43e8f0b9437f85d2f5f55:
> > > > 
> > > >   tests: add functional test validating ipv4/ipv6 address flag handling 
> > > > (2017-06-07 17:15:08 +0100)
> > > > 
> > > > ----------------------------------------------------------------
> > > > Merge sockets 2017/06/07 v1
> > > > 
> > > > ----------------------------------------------------------------
> > > 
> > > Hi; I'm afraid this ran into 'make check' problems:
> > > 
> > > On OSX and FreeBSD:
> > >   GTESTER check-qtest-i386
> > > ERROR:/Users/pm215/src/qemu-for-merges/tests/test-sockets-proto.c:825:void
> > > test_listen(const void *): assertion failed: (data->ipv6 != 0)
> > > GTester: last random seed: R02Sc21fa7784ab13d0fd3274d86c5a52367
> > > **
> > > ERROR:/Users/pm215/src/qemu-for-merges/tests/test-sockets-proto.c:825:void
> > > test_listen(const void *): assertion failed: (data->ipv6 != 0)
> > > GTester: last random seed: R02Sdf653a63e8d9a5d03bfadb49122f3e9a
> > 
> > Ok, it appears that getaddrinfo() returns different results for "localhost"
> > on FreeBSD/OSX, compared to Linux. Linux returns IPv4 first, then IPv6,
> > while FreeBSD/OSX return IPv6 first then IPv4. The sockets code is working
> > correctly, but the unit test is not seeing the expected results, since its
> > data tables are expecting the Linux behaviour. Not sure how I'll fix this
> > yet, perhaps I'll just #ifdef __linux__ as a temporary hack.
> 
> On Linux it depends of your /etc/gai.conf(5), on FreeBSD it depends on
> ip6addrctl(8) policy.
> 
> I'm not sure about this hack, temporary tends to last...

Yeah, I'm thinking about a way to adapt the test suite to cope with
the arbitrary ordering, rather than assuming an "out of the box"
gai.conf setup.


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

Reply via email to