pgsql: Allow recovery tests to run on Windows as an admin user

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Allow recovery tests to run on Windows as an admin user
Date: 2019-03-04 20:54:08
Message-ID: E1h0ubA-0007VU-VA@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2019-03-04 22:36:31 pgsql: Disable dump_connstr test on Msys2
Previous Message Peter Geoghegan 2019-03-04 20:37:14 pgsql: Correct obsolete nbtree page split WAL comment.