Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc38518f

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 parent1d0399b commitc38518f

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
@@ -80,7 +80,7 @@
8080
SKIP:
8181
{
8282
skip"unix-style permissions not supported on Windows", 2
83-
if ($windows_os);
83+
if ($windows_os ||$Config::Config{osname}eq'cygwin');
8484

8585
# Init a new db with group access
8686
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
@@ -489,7 +489,7 @@
489489
SKIP:
490490
{
491491
skip"unix-style permissions not supported on Windows", 1
492-
if ($windows_os);
492+
if ($windows_os ||$Config::Config{osname}eq'cygwin');
493493

494494
ok(check_mode_recursive("$tempdir/backup1", 0750, 0640),
495495
"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", 3if ($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
@@ -101,7 +101,8 @@
101101
SKIP:
102102
{
103103
skip"unix-style permissions not supported on Windows", 4
104-
if$scenario->{'skip_on_windows'} &&$windows_os;
104+
if ($scenario->{'skip_on_windows'} &&
105+
($windows_os ||$Config::Config{osname}eq'cygwin'));
105106

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp