Fix t/02_relation_size.t for 8.4 by skipping indexes_size
authorChristoph Berg <[email protected]>
Sun, 5 Jun 2016 16:17:49 +0000 (18:17 +0200)
committerChristoph Berg <[email protected]>
Sun, 5 Jun 2016 16:24:52 +0000 (18:24 +0200)
t/02_relation_size.t

index 2825c9b9d50e17af65d682cec4da4942fdbbcebb..6ddeb8deec056a6e8808f3df8832e6b9e9e75622 100644 (file)
@@ -102,6 +102,8 @@ like ($cp->run(qq{-w 1 --includeuser=$user --include=${testtbl}_index}),
 #### Switch gears, and test the other size actions
 
 for $S (qw(index_size table_size indexes_size total_relation_size)) {
+SKIP: {
+    skip "$S not supported before 9.0", 4 if ($S eq 'indexes_size' and $ver < 90000);
     $result = $cp->run($S, q{-w 1});
     $label = "POSTGRES_\U$S";
 
@@ -129,5 +131,6 @@ for $S (qw(index_size table_size indexes_size total_relation_size)) {
     like ($cp->run($S, qq{-w 1 --includeuser=$user $include $exclude}),
                    qr|$label.*$message|, $t)
 }
+}
 
 exit;