Skip to content

Commit f839087

Browse files
committed
Skip some permissions checks on Cygwin
These are checks that are already skipped on other Windows systems. Backpatch to all live branches, as appropriate.
1 parent 11b9b8c commit f839087

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

src/bin/initdb/t/001_initdb.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
SKIP:
9999
{
100100
skip "unix-style permissions not supported on Windows", 2
101-
if ($windows_os);
101+
if ($windows_os || $Config::Config{osname} eq 'cygwin');
102102

103103
# Init a new db with group access
104104
my $datadir_group = "$tempdir/data_group";

src/bin/pg_basebackup/t/010_pg_basebackup.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@
483483
SKIP:
484484
{
485485
skip "unix-style permissions not supported on Windows", 1
486-
if ($windows_os);
486+
if ($windows_os || $Config::Config{osname} eq 'cygwin');
487487

488488
ok(check_mode_recursive("$tempdir/backup1", 0750, 0640),
489489
"check backup dir permissions");

src/bin/pg_ctl/t/001_start_stop.pl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@
7979

8080
SKIP:
8181
{
82-
skip "group access not supported on Windows", 3 if ($windows_os);
82+
skip "group access not supported on Windows", 3
83+
if ($windows_os || $Config::Config{osname} eq 'cygwin');
8384

8485
system_or_bail 'pg_ctl', 'stop', '-D', "$tempdir/data";
8586

src/bin/pg_rewind/t/002_databases.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ sub run_test
6060
SKIP:
6161
{
6262
skip "unix-style permissions not supported on Windows", 1
63-
if ($windows_os);
63+
if ($windows_os || $Config::Config{osname} eq 'cygwin');
6464

6565
ok(check_mode_recursive($node_primary->data_dir(), 0750, 0640),
6666
'check PGDATA permissions');

src/bin/pg_verifybackup/t/003_corruption.pl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@
108108
SKIP:
109109
{
110110
skip "unix-style permissions not supported on Windows", 4
111-
if $scenario->{'skip_on_windows'} && $windows_os;
111+
if ($scenario->{'skip_on_windows'} &&
112+
($windows_os || $Config::Config{osname} eq 'cygwin'));
112113

113114
# Take a backup and check that it verifies OK.
114115
my $backup_path = $primary->backup_dir . '/' . $name;

0 commit comments

Comments
 (0)