Closed jkeenan closed 3 years ago
@chorny, do you have any insight into this problem?
Thank you very much. Jim Keenan
Pending feedback from @chorny, I have TODO-ed the errant test in commit 3b361cec80.
On my windows machine with Strawberry Perl 5.28.0 I get
perl -E"my $x = sprintf '%.1e', 1e-5; say $x; $x=~s/e-0/e-/; say $x"
1.0e-005
1.0e-05
If I modify the regexp to capture multiple zeroes using s/e-0+/e-/
then it works as desired.
perl -E"my $x = sprintf '%.1e', 1e-5; say $x; $x=~s/e-0+/e-/; say $x"
1.0e-005
1.0e-5
If I modify the regexp to capture multiple zeroes using
s/e-0+/e-/
then it works as desired.perl -E"my $x = sprintf '%.1e', 1e-5; say $x; $x=~s/e-0+/e-/; say $x" 1.0e-005 1.0e-5
Good insight! Can you try out this pull request?
https://github.com/timbunce/devel-nytprof/pull/173
And thanks for continuing to follow this repository! Jim Keenan
t/30-util.t passes for me under that PR, whereas it failed when testing 6.08 from CPAN.
On 4/28/21 6:12 PM, shawnlaffan wrote:
t/30-util.t passes for me under that PR, whereas it failed when testing 6.08 from CPAN.
Thanks! I will merge the p.r. to master soon. jimk
On 4/28/21 6:12 PM, shawnlaffan wrote: t/30-util.t passes for me under that PR, whereas it failed when testing 6.08 from CPAN. Thanks! I will merge the p.r. to master soon. jimk
Branch has been merged to master in merge commit 6b9a3df7b0ece3ae7451524ff912c51fa81efca4. Ticket will be kept open until we can observe results of next CPAN release.
Thank you very much. Jim Keenan
This should be closable now that v6.09 has been released.
This should be closable now that v6.09 has been released.
No Win32 test failures for v6.10 are attributable to t/30-util.t. Closing ticket.
Thank you very much. Jim Keenan
In certain smoke-testing reports for Devel-NYTProf-6.08 on Windows, a new unit test failure is being observed.
Typical report: http://www.cpantesters.org/cpan/report/eae60049-6bf4-1014-9867-b4129abe8bb7
Failure:
Relevant code in
t/30-util.t
:Tester's
perl -V
data:The failure was observed on earlier versions of
perl
reported by the same tester.This test was added by me in 13d789c4 which was part of the 6.08 release to CPAN. The failure was not observed on any of the AppVeyor test runs on Strawberry Perl/Windows during development. There are certain differences in the
perl
configuration between the tester and my Appveyor:However, I cannot yet determine whether these differences are explanatory.
The problematic code can be extracted to the following:
... where most testers are getting
4.0e-5
but this tester is getting4.0e-05
, i.e., the statement at#####
is either not being reached or not running correctly.Needs investigation.
Thank you very much. Jim Keenan