pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Close psql processes gracefully in recovery tests
Date: Thu, 04 Mar 2021 18:24:17 +0000
Message-ID: <E1lHse1-0001LB-4l@gemulon.postgresql.org> (raw)

Close psql processes gracefully in recovery tests

Under windows, psql processes need to be ended explicitly, or the TAP
tests hang. However, the recovery tests were doing this via
IPC::Run::kill_kill(), which causes other major problems on Windows.

We solve this by instead sending '\q' to psql so it quits of its own
accord, and then simply waiting for it. This means we can now run almost
all the recovery tests on all Windows platforms.

Discussion: https://postgr.es/m/20210301200715.tdjpuesfzebpffgn@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d3676a2e9f10a0972c6d6649235c1c7492cd6dea

Modified Files
--------------
src/test/recovery/t/011_crash_recovery.pl | 13 +++----------
src/test/recovery/t/021_row_visibility.pl |  9 ++++++---
2 files changed, 9 insertions(+), 13 deletions(-)



Message-ID: <E1lHse1-0001LB-4l@gemulon.postgresql.org>
Permalink:  ../E1lHse1-0001LB-4l@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lHse1-0001LB-4l@gemulon.postgresql.org

 · 

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: andrew@dunslane.net
  Subject: Re: pgsql: Close psql processes gracefully in recovery tests
  In-Reply-To: <E1lHse1-0001LB-4l@gemulon.postgresql.org>
  References: <E1lHse1-0001LB-4l@gemulon.postgresql.org>

* 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