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: Allow recovery tests to run on Windows as an admin user
Date: Mon, 04 Mar 2019 20:54:08 +0000
Message-ID: <E1h0ubA-0007VU-VA@gemulon.postgresql.org> (raw)

Allow recovery tests to run on Windows as an admin user

This is the only test that fails when run as an admin user. The reason
is that when Postgres is started via pg_ctl its admin privileges are
lowered. However, this test called 'postgres -D datadir' directly,
resulting in a failure. Replace that by calling pg_ctl and then checking
the result for the expected failure, and the logfile for the expected
error message.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4eff1e9f0bf7835bee61aaaa9d6de23422a724a0

Modified Files
--------------
src/test/recovery/t/003_recovery_targets.pl | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)



Message-ID: <E1h0ubA-0007VU-VA@gemulon.postgresql.org>
Permalink:  ../E1h0ubA-0007VU-VA@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1h0ubA-0007VU-VA@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: Allow recovery tests to run on Windows as an admin user
  In-Reply-To: <E1h0ubA-0007VU-VA@gemulon.postgresql.org>
  References: <E1h0ubA-0007VU-VA@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