Skip to content

Commit 7c29764

Browse files
committed
Allow pg_rewind tap tests to run with older File::Path versions
Older versions have rmtree but not remove_tree. The one-argument forms of these are equivalent, so replace remove_tree with rmtree. This allows the tests to be run on oldish Msys systems.
1 parent ff85fc8 commit 7c29764

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bin/pg_rewind/RewindTest.pm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ use TestLib;
4141
use Test::More;
4242

4343
use File::Copy;
44-
use File::Path qw(remove_tree);
44+
use File::Path qw(rmtree);
4545
use IPC::Run qw(run start);
4646

4747
use Exporter 'import';
@@ -166,7 +166,7 @@ sub append_to_file
166166
sub setup_cluster
167167
{
168168
# Initialize master, data checksums are mandatory
169-
remove_tree($test_master_datadir);
169+
rmtree($test_master_datadir);
170170
standard_initdb($test_master_datadir);
171171

172172
# Custom parameters for master's postgresql.conf
@@ -202,7 +202,7 @@ sub create_standby
202202
{
203203

204204
# Set up standby with necessary parameter
205-
remove_tree $test_standby_datadir;
205+
rmtree $test_standby_datadir;
206206

207207
# Base backup is taken with xlog files included
208208
system_or_bail('pg_basebackup', '-D', $test_standby_datadir,

0 commit comments

Comments
 (0)