From 90de7df4ecd99152f5c7ebd63d0bf81ddb2f43db Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Fri, 3 Jun 2016 16:53:16 +0200 Subject: [PATCH] Skip replication slot tests before 9.4 (Refers to #109) --- t/02_replication_slots.t | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/t/02_replication_slots.t b/t/02_replication_slots.t index 1158a127f..163d836c0 100644 --- a/t/02_replication_slots.t +++ b/t/02_replication_slots.t @@ -25,6 +25,14 @@ diag "Connected as $port:$host:$dbname\n"; my $S = q{Action 'replication_slots'}; my $label = 'POSTGRES_REPLICATION_SLOTS'; +my $ver = $dbh->{pg_server_version}; +if ($ver < 90400) { + SKIP: { + skip 'replication slots not present before 9.4', 20; + } + exit 0; +} + $t = qq{$S self-identifies correctly}; $result = $cp->run(q{-w 0}); like ($result, qr{^$label}, $t); -- 2.39.5