]> granicus.if.org Git - postgresql/commitdiff
Handle old versions of Test::More
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 11 Sep 2014 00:39:28 +0000 (20:39 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 11 Sep 2014 00:52:35 +0000 (20:52 -0400)
Really old versions of Test::More don't support subplans, so skip the
tests in that case.

src/test/perl/TestLib.pm

index 899844baf73731eb647ab4a9a4200f50fe2ccbe7..545b2f3e502e41b262386c0b1d8ee99499524d44 100644 (file)
@@ -36,7 +36,14 @@ BEGIN
        } or do
        {
                plan skip_all => "IPC::Run not available";
-         }
+       };
+
+       eval {
+               Test::More->VERSION('0.93_01');
+       } or do
+       {
+               plan skip_all => "version of Test::More is too old to support subplans";
+       };
 }
 
 # Set to untranslated messages, to be able to compare program output