aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2014-09-10 20:39:28 -0400
committerPeter Eisentraut <peter_e@gmx.net>2014-09-10 20:52:50 -0400
commit958a828fea254307d7699aea4310f0654dc48990 (patch)
treebdccc467440f0080634026ab5317b25dba0a30da
parente7903163ff6352cd75dc896cf289e3cccc1fef33 (diff)
downloadpostgresql-958a828fea254307d7699aea4310f0654dc48990.tar.gz
postgresql-958a828fea254307d7699aea4310f0654dc48990.zip
Handle old versions of Test::More
Really old versions of Test::More don't support subplans, so skip the tests in that case.
-rw-r--r--src/test/perl/TestLib.pm9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/test/perl/TestLib.pm b/src/test/perl/TestLib.pm
index 899844baf73..545b2f3e502 100644
--- a/src/test/perl/TestLib.pm
+++ b/src/test/perl/TestLib.pm
@@ -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