Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 21dc488

Browse files
committed
pg_validatebackup: Use tempdir_short in TAP tests.
The buildfarm is very unhappy right now because TAP test 003_corruption.pl uses TestLib::tempdir to generate the name of a temporary directory that is used as a tablespace name, and this results in a 'symbolic link target too long' error message on many of the buildfarm machines, but not on my machine. It appears that other people have run into similar problems in the past and that TestLib::tempdir_short was the solution, so let's try using that instead.
1 parent 87e3004 commit 21dc488

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
# Include a user-defined tablespace in the hopes of detecting problems in that
1717
# area.
18-
my $source_ts_path = TestLib::tempdir;
18+
my $source_ts_path = TestLib::tempdir_short;
1919
$master->safe_psql('postgres', <<EOM);
2020
CREATE TABLE x1 (a int);
2121
INSERT INTO x1 VALUES (111);
@@ -103,7 +103,7 @@
103103

104104
# Take a backup and check that it validates OK.
105105
my $backup_path = $master->backup_dir . '/' . $name;
106-
my $backup_ts_path = TestLib::tempdir;
106+
my $backup_ts_path = TestLib::tempdir_short;
107107
$master->command_ok(['pg_basebackup', '-D', $backup_path, '--no-sync',
108108
'-T', "${source_ts_path}=${backup_ts_path}"],
109109
"base backup ok");

0 commit comments

Comments
 (0)