-
Notifications
You must be signed in to change notification settings - Fork 550
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
threads-2.07 t/test.pl uses re::is_regexp() which requires 5.10+ #15302
Comments
From andy@hybridized.orgthreads-2.07 on CPAN has this change to t/test.pl line 448: - unless (ref($expected) && ref($expected) =~ /Regexp/) { This breaks the test on anything older than 5.10. The fix is just to revert this line. |
From @jkeenanOn Mon May 02 10:38:44 2016, andy@hybridized.org wrote:
I don't see any 'dist/threads/t/test.pl' in the Perl 5 core distribution. I do, however, see it in the CPAN distribution: Jerry, can you look into this? Thank you very much. -- |
The RT System itself - Status changed from 'new' to 'open' |
From andy@hybridized.orgWhen I sent this, I didn't fully understand how this dist was related to core, but in fact the file in question is t/test.pl in blead. In addition to the re::is_regexp issue, there is another issue in the same file where unpack 'W*' is used (line 299). bulk88 sent me this patch for it on IRC earlier to use U* instead of W* on Perls < 5.10: perl11/p5-Config@d4fd527#diff-9608c9f2a031ad0f9b427c09e2c65bd5 |
From @cpansproutOn Mon May 02 17:08:43 2016, andy@hybridized.org wrote:
Since threads.pm, a dual-life module, depends on test.pl, which exists for perl’s own testing purposes, it has to be included in the distribution for the tests to work. Hence, I think it would be good to keep perl’s test.pl 5.8-compatible as long as this arrangement exists. But patching test.pl can wait until after the release of 5.24. -- Father Chrysostomos |
From @jdheddenOn Mon May 02 18:00:07 2016, sprout wrote:
This affects both 'threads' and 'threads::shared' and means the CPAN versions for both of these are 'broken'. My inclination is to release updated versions of these modules to CPAN to accommodate the fixes for both the regexp and pack problems mentioned. This would entail version bumps, of course. This would mean that the CPAN versions would be ahead of the 5.24 versions. Is this a problem? Additionally, for whoever 'fixes' t/test.pl, documentation should be added mentioning this matter and the need to keep t/test.pl compatible with Perl 5.8. |
From @arcJerry D. Hedden via RT <perlbug-followup@perl.org> wrote:
I've patched t/test.pl as of blead commit
I don't think anyone's answered this question; I'm sorry about that. Thanks. -- |
@arc - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#128052 (status was 'resolved')
Searchable as RT128052$
The text was updated successfully, but these errors were encountered: