Different (but valid) output in the testsuite

Thomas Arendsen Hein thomas at intevation.de
Fri Feb 1 09:09:08 CST 2013


* Matt Mackall <mpm at selenic.com> [20120316 23:45]:
> On Thu, 2012-03-15 at 23:31 +0000, Javi Merino wrote:
> > > > --- /build/buildd-mercurial_2.1.1-2-hurd-i386-nljf5k/mercurial-2.1.1/tests/test-bad-pull.t
> > > > +++ /build/buildd-mercurial_2.1.1-2-hurd-i386-nljf5k/mercurial-2.1.1/tests/test-bad-pull.t.err
> > > > @@ -1,7 +1,7 @@
> > > >    $ "$TESTDIR/hghave" serve || exit 80
> > > >  
> > > >    $ hg clone http://localhost:$HGPORT/ copy
> > > > -  abort: error: Connection refused
> > > > +  abort: error: Address family not supported by protocol
> > > 
> > > Not actually valid. ECONNREFUSED is very different from EAFNOSUPPORT.
> > 
> > Right, but that doesn't mean that mercurial is broken, it's just that
> > the kernel doesn't support IP.  I may improve has_serve() in hghave to
> > cover this and the possibility that the loopback interface is not
> > configured so that these tests are skipped in those systems.
> 
> How does this test work at all with no loopback or IPv4?

Old thread, but as I just got informed about a user having this
failed test on a linux PC. The reason was that IPv6 was disabled and
/etc/hosts contained two entries for localhost, one being ::1

I don't think the test needs to be adjusted as this is a
misconfiguration of the system.

Regards,
Thomas

-- 
thomas at intevation.de - http://intevation.de/~thomas/ - OpenPGP key: 0x5816791A
Intevation GmbH, Neuer Graben 17, 49074 Osnabrueck - AG Osnabrueck, HR B 18998
Geschaeftsfuehrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner


More information about the Mercurial-devel mailing list