aboutsummaryrefslogtreecommitdiff
path: root/src/bin/pg_rewind/t/005_same_timeline.pl
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/pg_rewind/t/005_same_timeline.pl')
-rw-r--r--src/bin/pg_rewind/t/005_same_timeline.pl14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/bin/pg_rewind/t/005_same_timeline.pl b/src/bin/pg_rewind/t/005_same_timeline.pl
new file mode 100644
index 00000000000..8ca442671cd
--- /dev/null
+++ b/src/bin/pg_rewind/t/005_same_timeline.pl
@@ -0,0 +1,14 @@
+use strict;
+use warnings;
+use TestLib;
+use Test::More tests => 1;
+
+use RewindTest;
+
+# Test that running pg_rewind if the two clusters are on the same
+# timeline runs successfully.
+
+RewindTest::setup_cluster();
+RewindTest::start_master();
+RewindTest::create_standby();
+RewindTest::run_pg_rewind('local');