Skip to content

Commit 38c9a59

Browse files
committed
Fix pg_upgrade test on Cygwin
The verification of permissions doesn't succeed on Cygwin, because the required feature is not implemented for Cygwin at the moment. So skip this part of the test, like MinGW already does.
1 parent 2ecfeda commit 38c9a59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/pg_upgrade/test.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -232,15 +232,15 @@ pg_upgrade $PG_UPGRADE_OPTS -d "${PGDATA}.old" -D "$PGDATA" -b "$oldbindir" -p "
232232
# make sure all directories and files have group permissions, on Unix hosts
233233
# Windows hosts don't support Unix-y permissions.
234234
case $testhost in
235-
MINGW*) ;;
235+
MINGW*|CYGWIN*) ;;
236236
*) if [ `find "$PGDATA" -type f ! -perm 640 | wc -l` -ne 0 ]; then
237237
echo "files in PGDATA with permission != 640";
238238
exit 1;
239239
fi ;;
240240
esac
241241

242242
case $testhost in
243-
MINGW*) ;;
243+
MINGW*|CYGWIN*) ;;
244244
*) if [ `find "$PGDATA" -type d ! -perm 750 | wc -l` -ne 0 ]; then
245245
echo "directories in PGDATA with permission != 750";
246246
exit 1;

0 commit comments

Comments
 (0)