Skip Menu |

This queue is for tickets about the Catalyst-Runtime CPAN distribution.

Report information
The Basics
Id: 124459
Status: resolved
Priority: 0/
Queue: Catalyst-Runtime

People
Owner: Nobody in particular
Requestors: RANDIR [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 5.90118



Subject: Tests assume too much about Time::HiRes internals
Starting with Time::HiRes version 1.9754, test t/unit_stats.t from this module started to fail. This is because it redefines gettimeofday() but not tv_interval() and assumes that the latter will call the former. But this is no longer the case due to optimizations in Time::HiRes. The original discussion can be found here https://rt.cpan.org/Ticket/Display.html?id=124450.
On 2018-02-18 07:39:29, RANDIR wrote: Show quoted text
> Starting with Time::HiRes version 1.9754, test t/unit_stats.t from > this module started to fail. This is because it redefines > gettimeofday() but not tv_interval() and assumes that the latter will > call the former. But this is no longer the case due to optimizations > in Time::HiRes. > > The original discussion can be found here > https://rt.cpan.org/Ticket/Display.html?id=124450.
A possible patch: http://cpan.cpantesters.org/authors/id/S/SR/SREZIC/patches/Catalyst-Runtime-5.90117-RT124459.patch CPAN.pm users may use the following distroprefs file for automatic patching: https://github.com/eserte/srezic-cpan-distroprefs/blob/master/Catalyst-Runtime.yml
On Sat Mar 03 11:08:38 2018, SREZIC wrote: Show quoted text
> On 2018-02-18 07:39:29, RANDIR wrote:
> > Starting with Time::HiRes version 1.9754, test t/unit_stats.t from > > this module started to fail. This is because it redefines > > gettimeofday() but not tv_interval() and assumes that the latter will > > call the former. But this is no longer the case due to optimizations > > in Time::HiRes. > > > > The original discussion can be found here > > https://rt.cpan.org/Ticket/Display.html?id=124450.
> > A possible patch: > http://cpan.cpantesters.org/authors/id/S/SR/SREZIC/patches/Catalyst- > Runtime-5.90117-RT124459.patch >
I concur that that patch fixes t/unit_stats.t. Since the version of Time-HiRes in question has been merged into Perl 5 blead, the patch should be applied before perl-5.28.0 is release in May. Show quoted text
> CPAN.pm users may use the following distroprefs file for automatic > patching: > https://github.com/eserte/srezic-cpan- > distroprefs/blob/master/Catalyst-Runtime.yml
Fixed in git.