git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8632ba6)
Handle old versions of Test::More
2014年9月11日 00:39:28 +0000 (20:39 -0400)
2014年9月11日 00:52:35 +0000 (20:52 -0400)
Really old versions of Test::More don't support subplans, so skip the
tests in that case.


diff --git a/src/test/perl/TestLib.pm b/src/test/perl/TestLib.pm
index 899844baf73731eb647ab4a9a4200f50fe2ccbe7..545b2f3e502e41b262386c0b1d8ee99499524d44 100644 (file)
--- 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
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /