mirror of
https://github.com/postgres/postgres.git
synced 2025-07-15 19:21:59 +03:00
Skip some permissions checks on Cygwin
These are checks that are already skipped on other Windows systems. Backpatch to all live branches, as appropriate.
This commit is contained in:
@ -77,7 +77,7 @@ command_fails([ 'initdb', $datadir ], 'existing data directory');
|
|||||||
SKIP:
|
SKIP:
|
||||||
{
|
{
|
||||||
skip "unix-style permissions not supported on Windows", 2
|
skip "unix-style permissions not supported on Windows", 2
|
||||||
if ($windows_os);
|
if ($windows_os || $Config::Config{osname} eq 'cygwin');
|
||||||
|
|
||||||
# Init a new db with group access
|
# Init a new db with group access
|
||||||
my $datadir_group = "$tempdir/data_group";
|
my $datadir_group = "$tempdir/data_group";
|
||||||
|
@ -218,7 +218,8 @@ SKIP:
|
|||||||
# skip on Windows.
|
# skip on Windows.
|
||||||
SKIP:
|
SKIP:
|
||||||
{
|
{
|
||||||
skip "symlinks not supported on Windows", 18 if ($windows_os);
|
skip "symlinks not supported on Windows", 18
|
||||||
|
if ($windows_os);
|
||||||
|
|
||||||
# Move pg_replslot out of $pgdata and create a symlink to it.
|
# Move pg_replslot out of $pgdata and create a symlink to it.
|
||||||
$node->stop;
|
$node->stop;
|
||||||
@ -304,9 +305,15 @@ SKIP:
|
|||||||
"tablespace symlink was updated");
|
"tablespace symlink was updated");
|
||||||
closedir $dh;
|
closedir $dh;
|
||||||
|
|
||||||
|
SKIP:
|
||||||
|
{
|
||||||
|
skip "unix-style permissions not supported on Windows", 1
|
||||||
|
if ($Config::Config{osname} eq 'cygwin');
|
||||||
|
|
||||||
# Group access should be enabled on all backup files
|
# Group access should be enabled on all backup files
|
||||||
ok(check_mode_recursive("$tempdir/backup1", 0750, 0640),
|
ok(check_mode_recursive("$tempdir/backup1", 0750, 0640),
|
||||||
"check backup dir permissions");
|
"check backup dir permissions");
|
||||||
|
}
|
||||||
|
|
||||||
# Unlogged relation forks other than init should not be copied
|
# Unlogged relation forks other than init should not be copied
|
||||||
my ($tblspc1UnloggedBackupPath) =
|
my ($tblspc1UnloggedBackupPath) =
|
||||||
|
@ -78,7 +78,8 @@ $logFileName = "$tempdir/data/perm-test-640.log";
|
|||||||
|
|
||||||
SKIP:
|
SKIP:
|
||||||
{
|
{
|
||||||
skip "group access not supported on Windows", 3 if ($windows_os);
|
skip "group access not supported on Windows", 3
|
||||||
|
if ($windows_os || $Config::Config{osname} eq 'cygwin');
|
||||||
|
|
||||||
system_or_bail 'pg_ctl', 'stop', '-D', "$tempdir/data";
|
system_or_bail 'pg_ctl', 'stop', '-D', "$tempdir/data";
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ template1
|
|||||||
SKIP:
|
SKIP:
|
||||||
{
|
{
|
||||||
skip "unix-style permissions not supported on Windows", 1
|
skip "unix-style permissions not supported on Windows", 1
|
||||||
if ($windows_os);
|
if ($windows_os || $Config::Config{osname} eq 'cygwin');
|
||||||
|
|
||||||
ok(check_mode_recursive($node_master->data_dir(), 0750, 0640),
|
ok(check_mode_recursive($node_master->data_dir(), 0750, 0640),
|
||||||
'check PGDATA permissions');
|
'check PGDATA permissions');
|
||||||
|
Reference in New Issue
Block a user