Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 75717ce

Browse files
committed
Handle old versions of Test::More
Really old versions of Test::More don't support subplans, so skip the tests in that case.
1 parent 8632ba6 commit 75717ce

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/test/perl/TestLib.pm

+8-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,14 @@ BEGIN
3636
} or do
3737
{
3838
plan skip_all => "IPC::Run not available";
39-
}
39+
};
40+
41+
eval {
42+
Test::More->VERSION('0.93_01');
43+
} or do
44+
{
45+
plan skip_all => "version of Test::More is too old to support subplans";
46+
};
4047
}
4148

4249
# Set to untranslated messages, to be able to compare program output

0 commit comments

Comments
 (0)