SKIP:
{
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
my $datadir_group = "$tempdir/data_group";
# skip on Windows.
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.
$node->stop;
"tablespace symlink was updated");
closedir $dh;
- # Group access should be enabled on all backup files
- ok(check_mode_recursive("$tempdir/backup1", 0750, 0640),
- "check backup dir permissions");
+ 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
+ ok(check_mode_recursive("$tempdir/backup1", 0750, 0640),
+ "check backup dir permissions");
+ }
# Unlogged relation forks other than init should not be copied
my ($tblspc1UnloggedBackupPath) =
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";
SKIP:
{
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),
'check PGDATA permissions');