summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut2014-09-11 00:39:28 +0000
committerPeter Eisentraut2014-09-11 00:52:35 +0000
commit75717ce8f0cdca6a6778d0a9a6ef6d3196b9e483 (patch)
tree0ae2bfc0a07915f47e55ac383e9ba30e318285e0 /src
parent8632ba6de4f3c61cb247267c6885f025bfadbb84 (diff)
Handle old versions of Test::More
Really old versions of Test::More don't support subplans, so skip the tests in that case.
Diffstat (limited to 'src')
-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