mirror of
https://github.com/postgres/postgres.git
synced 2025-06-01 14:21:49 +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:
parent
1d0399b540
commit
c38518fa97
@ -80,7 +80,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";
|
||||||
|
@ -489,7 +489,7 @@ SKIP:
|
|||||||
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("$tempdir/backup1", 0750, 0640),
|
ok(check_mode_recursive("$tempdir/backup1", 0750, 0640),
|
||||||
"check backup dir permissions");
|
"check backup dir permissions");
|
||||||
|
@ -79,7 +79,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";
|
||||||
|
|
||||||
|
@ -60,7 +60,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_primary->data_dir(), 0750, 0640),
|
ok(check_mode_recursive($node_primary->data_dir(), 0750, 0640),
|
||||||
'check PGDATA permissions');
|
'check PGDATA permissions');
|
||||||
|
@ -101,7 +101,8 @@ for my $scenario (@scenario)
|
|||||||
SKIP:
|
SKIP:
|
||||||
{
|
{
|
||||||
skip "unix-style permissions not supported on Windows", 4
|
skip "unix-style permissions not supported on Windows", 4
|
||||||
if $scenario->{'skip_on_windows'} && $windows_os;
|
if ($scenario->{'skip_on_windows'} &&
|
||||||
|
($windows_os || $Config::Config{osname} eq 'cygwin'));
|
||||||
|
|
||||||
# Take a backup and check that it verifies OK.
|
# Take a backup and check that it verifies OK.
|
||||||
my $backup_path = $primary->backup_dir . '/' . $name;
|
my $backup_path = $primary->backup_dir . '/' . $name;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user