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.