Allow recovery tests to run on Windows as an admin user

Andrew Dunstan <andrew@dunslane.net>

Commit: 4eff1e9f0bf7835bee61aaaa9d6de23422a724a0
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2019-03-04T20:54:02Z
Releases: 12.0
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.

Files

PathChange+/−
src/test/recovery/t/003_recovery_targets.pl modified +8 −3