Skip to content

Commit 17009fb

Browse files
committed
Fix TAP tests with Perl 5.12
Perl 5.12 ships with a somewhat broken version of Test::Simple, so skip the tests if that is found. The relevant fix is 0.98 Wed, 23 Feb 2011 14:38:02 +1100 Bug Fixes * subtest() should not fail if $? is non-zero. (Aaron Crane)
1 parent 5c3d830 commit 17009fb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/test/perl/TestLib.pm

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@ BEGIN
4444
{
4545
plan skip_all => "version of Test::More is too old to support subplans";
4646
};
47+
48+
eval {
49+
require Test::Simple;
50+
Test::Simple->VERSION('0.98');
51+
} or do
52+
{
53+
plan skip_all => "version of Test::Simple is too old to support subplans properly";
54+
};
4755
}
4856

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

0 commit comments

Comments
 (0)