Cannot test listener action of postgres 9.0 and up
authorGreg Sabino Mullane <greg@endpoint.com>
Mon, 3 Jan 2011 17:46:50 +0000 (12:46 -0500)
committerGreg Sabino Mullane <greg@endpoint.com>
Mon, 3 Jan 2011 17:46:50 +0000 (12:46 -0500)
t/02_listener.t

index cb0769163fc77465e4d68eaad0c5e0145a836ce0..5a8f74c8de8876206f82c722f38796acd77ad307 100644 (file)
@@ -24,6 +24,16 @@ my $label = 'POSTGRES_LISTENER';
 
 $result = $cp->run('-w foo');
 
+my $ver = $dbh->{pg_server_version};
+if ($ver >= 90000) {
+  SKIP: {
+        skip 'Cannot test listener on Postgres 9.0 or higher', 8;
+    }
+
+       exit;
+
+}
+
 $t = qq{$S returned expected text and warning};
 like ($result, qr{^$label WARNING:}, $t);