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

Commitbec0dcb

Browse files
committed
Revert "Improve pg_basebackup long file name test Windows robustness"
Version 12 and older are missing the required infrastructure.
1 parente94a9af commitbec0dcb

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -197,20 +197,16 @@
197197
'-T with invalid format fails');
198198

199199
# Tar format doesn't support filenames longer than 100 bytes.
200-
# Create the test file via a short name directory so it doesn't blow the
201-
# Windows path limit.
202-
my$lftmp = TestLib::tempdir_short;
203-
dir_symlink"$pgdata","$lftmp/pgdata";
204200
my$superlongname ="superlongname_" . ("x"x100);
205-
my$superlongpath ="$lftmp/pgdata/$superlongname";
201+
my$superlongpath ="$pgdata/$superlongname";
206202

207203
openmy$file,'>',"$superlongpath"
208204
ordie"unable to create file$superlongpath";
209205
close$file;
210206
$node->command_fails(
211207
['pg_basebackup','-D',"$tempdir/tarbackup_l1",'-Ft' ],
212208
'pg_basebackup tar with long name fails');
213-
unlink"$superlongpath";
209+
unlink"$pgdata/$superlongname";
214210

215211
# The following tests test symlinks. Windows doesn't have symlinks, so
216212
# skip on Windows.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp