Re: [COMMITTERS] pgsql: Refactor Perl test code

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [COMMITTERS] pgsql: Refactor Perl test code
Date: 2015-12-03 20:28:08
Message-ID: 20151203202808.GR2763@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Tom Lane wrote:
> Michael Paquier <michael(dot)paquier(at)gmail(dot)com> writes:
> > On Thu, Dec 3, 2015 at 12:19 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> >> BTW, not the fault of this patch in particular, but this example points
> >> up the complaint I've had right along about how opaque TAP test failures
> >> are. How did you dig down to see that error message?
>
> > Well, it showed up on my terminal...
>
> Not on mine, as per the extract I showed. Probably a Perl version
> difference, but I don't think we can exactly write off RHEL6 as an
> uninteresting obsolete distribution. (The Perl here is 5.10.1.)

Hmm, maybe a selinux policy or something like that is preventing some
system call from working, and this causes a Perl call to fail which we
may be failing to report; for instance we have
open(ORIG_STDOUT, ">&STDOUT");
in TestLib.pm's INIT block, without an "or die" which would let us know
that it failed.

--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2015-12-03 21:57:33 Re: [COMMITTERS] pgsql: Refactor Perl test code
Previous Message Tom Lane 2015-12-03 19:30:25 pgsql: Clean up some psql issues around handling of the query output fi

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2015-12-03 20:45:44 Re: pg_hba_lookup function to get all matching pg_hba.conf entries
Previous Message Pavel Stehule 2015-12-03 19:49:09 Re: broken tests