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

Commit7c29764

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 formsof these are equivalent, so replace remove_tree with rmtree. This allowsthe tests to be run on oldish Msys systems.
1 parentff85fc8 commit7c29764

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::Pathqw(remove_tree);
44+
use File::Pathqw(rmtree);
4545
use IPC::Runqw(run start);
4646

4747
use Exporter'import';
@@ -166,7 +166,7 @@ sub append_to_file
166166
subsetup_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)

[8]ページ先頭

©2009-2025 Movatter.jp