pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andrew Dunstan <andrew@dunslane.net>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Close stdin where it's not needed in TestLib.pm procedures
Date: Tue, 26 Nov 2019 17:47:02 +0900
Message-ID: <20191126084702.GF5435@paquier.xyz> (raw)
In-Reply-To: <29991.1574752430@sss.pgh.pa.us>
References: <E1iZLUQ-0006Kb-MM@gemulon.postgresql.org>
	<20191126044302.GC5435@paquier.xyz>
	<29991.1574752430@sss.pgh.pa.us>

On Tue, Nov 26, 2019 at 02:13:50AM -0500, Tom Lane wrote:
> Perhaps the "where possible" caveat needs to include a test whether
> IO::Pty is installed?  It's evidently not there by default everywhere.
> 
> It's possible that we should just move the goalposts and say IO::Pty
> is required for TAP testing.  I can foresee that we'll have to do
> that if we ever want automated tests of psql's tab completion,
> for example.

Hmm.  I am not sure that we are at that point yet (in which case we'd
need to check after it in configure).  Any other modules we require to
be installed are directly imported to our code, but here we visibly
have a dependency forced by the loaded code.  My point is that it does
not impact platforms that do not need it, so it seems like a waste to
require for everybody something which is actually necessary only for a
portion of users running the TAP tests.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (11+ messages)  latest in thread

Message-ID: <20191126084702.GF5435@paquier.xyz>
Permalink:  ../20191126084702.GF5435@paquier.xyz/
Also on:    postgresql.org/message-id/20191126084702.GF5435@paquier.xyz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz, tgl@sss.pgh.pa.us, andrew@dunslane.net
  Subject: Re: pgsql: Close stdin where it's not needed in TestLib.pm procedures
  In-Reply-To: <20191126084702.GF5435@paquier.xyz>
  References: <E1iZLUQ-0006Kb-MM@gemulon.postgresql.org> <20191126044302.GC5435@paquier.xyz> <29991.1574752430@sss.pgh.pa.us> <20191126084702.GF5435@paquier.xyz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox