-
Notifications
You must be signed in to change notification settings - Fork 560
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
Bleadperl v5.21.4-409-gef7999f breaks UNIFIEDSW/Finance-BankVal-UK-0.4.tar.gz #14183
Comments
From @andkgit bisect commit ef7999f Optimise my(@array)=split sample report http://www.cpantesters.org/cpan/report/c1f00f88-59b7-11e4-a867-5590bb36d621 perl -V Summary of my perl5 (revision 5 version 21 subversion 5) configuration: Characteristics of this binary (from libperl): |
From @jkeenanOn Sun Oct 26 00:47:00 2014, andreas.koenig.7os6VVqR@franz.ak.mind.de wrote:
Confirmed. ef7999f causes a compilation failure in a situation where 5.20.1 does not. I have translated the code in the CPAN distribution which suffered the failure into a patch to t/op/chop.t. blead will experience a syntax error and compilation failure when you try to run that test file. ##### Test Summary Report op/chop.t (Wstat: 65280 Tests: 0 Failed: 0) Thank you very much. -- |
From @jkeenan123057-Test-file-fails-to-compile.patchFrom fa71c6b4167d3f81335fb9677c8b7169ccf87d88 Mon Sep 17 00:00:00 2001
From: James E Keenan <jkeenan@cpan.org>
Date: Sun, 26 Oct 2014 10:14:40 -0400
Subject: [PATCH] Test file fails to compile.
For: RT #123057
---
t/op/chop.t | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/t/op/chop.t b/t/op/chop.t
index 3cf8735..884145c 100644
--- a/t/op/chop.t
+++ b/t/op/chop.t
@@ -6,7 +6,7 @@ BEGIN {
require './test.pl'; require './charset_tools.pl';
}
-plan tests => 143;
+plan tests => 144;
$_ = 'abc';
$c = foo();
@@ -263,3 +263,13 @@ foreach my $start (@chars) {
is($result, "\x{fffffffffffffffe}", "chop even higher 'unicode' - result");
}
}
+
+{
+ my $expected = 99999;
+ my $input = "UserID\talpha $expected\n";
+ my $uid = '';
+ chomp(my @line = split (/ |\t/,$input));
+ $uid = $line[-1];
+ is($uid, $expected,
+ "RT #123057: chomp works as expected on split");
+}
--
1.9.1
|
The RT System itself - Status changed from 'new' to 'open' |
From @cpansproutOn Sun Oct 26 07:24:32 2014, jkeenan wrote:
Thank you for the test case. You’ve saved me time. It turns out this is an old bug in the optimisation, which I have ended up extending to more cases: $ perl5.8.7 -e '(@a = split//,$_)=1' # fine Judging by the source code, it probably goes back to perl 3.0. -- Father Chrysostomos |
From @jkeenanOn Sun Oct 26 08:13:14 2014, sprout wrote:
As of commit e4e9592, this appears to be resolved. ##### $ /home/jkeenan/gitwork/perl/perl -I/home/jkeenan/gitwork/perl/lib -Iblib/lib t/Finance-BankVal-UK.t |
@jkeenan - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#123057 (status was 'resolved')
Searchable as RT123057$
The text was updated successfully, but these errors were encountered: