8000 Revert "Improve pg_basebackup long file name test Windows robustness" · postgres/postgres@4463a78 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 4463a78

Browse files
committed
Revert "Improve pg_basebackup long file name test Windows robustness"
Version 12 and older are missing the required infrastructure.
1 parent e7f9c09 commit 4463a78

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" x 100);
205-
my $superlongpath = "$lftmp/pgdata/$superlongname";
201+
my $superlongpath = "$pgdata/$superlongname";
206202

207203
open my $file, '>', "$superlongpath"
208204
or die "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)
0