This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #128052] make t/test.pl compatible with older Perls
authorAaron Crane <arc@cpan.org>
Mon, 16 May 2016 11:19:03 +0000 (12:19 +0100)
committerAaron Crane <arc@cpan.org>
Mon, 16 May 2016 11:19:03 +0000 (12:19 +0100)
commit94b9cb53c203ffad48e3011ea660a3a5ed9a2b38
tree270bc2104aaa9a758dc64961a14dedaddab95bba
parent8255316ac82c0fbd7ae49f2f9a217ce063d7bbfb
[perl #128052] make t/test.pl compatible with older Perls

The RT ticket points out that the threads and threads::shared libraries,
among other CPAN modules, copy t/test.pl and must operate on older versions
of Perl; but that the version in threads 2.07 and threads::shared 1.51
contains constructs that require Perl 5.10.

This change restores 5.8 compatibility in t/test.pl, ready for reimporting
into the CPAN releases of those modules.

I can't see a way to test that this compatibility doesn't get accidentally
broken in the future, unfortunately.
t/test.pl