Re: TAP test breakage on MacOS X - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: TAP test breakage on MacOS X
Date
Msg-id 544D07A0.7090105@gmx.net
Whole thread Raw
In response to Re: TAP test breakage on MacOS X  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On 10/9/14 3:38 PM, Robert Haas wrote:
> The problem is that running initdb --not-a-valid-option leaves $? set
> to 256, as seems entirely unsurprising.  After running the anonymous
> block passed to it, Test::Builder::subtest calls Test::Build::finalize
> which calls Test::Build::_ending, which sets $real_exit_code to $? -
> i.e. 256.  That function later throws up if $real_exit_code isn't 0,
> hence the failure.
> 
> Off-hand, I'm not quite sure why this works for anyone.

Thank you for this analysis.  The problem is that the version of
Test::Simple that ships with Perl 5.12 is broken in this particular way.I have committed a fix to skip the tests in
thatcase.
 

You might want to review whether this is really the Perl installation
that you want to use.  It looks like it is coming from MacPorts, and
they have stopped updating their perl package.

I have run the PostgreSQL build against all Perl major versions between
5.8 and 5.20, and there have been no more unaddressed version-related
issues.




pgsql-hackers by date:

Previous
From: Marti Raudsepp
Date:
Subject: Re: [PATCH] Simplify EXISTS subqueries containing LIMIT
Next
From: Andrew Dunstan
Date:
Subject: Re: TAP test breakage on MacOS X