Skip to content

Tests fail with perl 5.43.3 and later (change of Time::HiRes::time prototype) #19

@eserte

Description

@eserte

The test suite fails with perl 5.43.3 and later, see https://fast2-matrix.cpantesters.org/?dist=Test-RedisServer%200.23

The test failure:

Output from './Build test':

Can't modify non-lvalue subroutine call of &Time::HiRes::sleep in addition (+) at /home/e/eserte/.cpan/build/2025121122/Test-RedisServer-0.23-0/blib/lib/Test/RedisServer.pm line 121, near "0.1;"
Compilation failed in require at t/basic.t line 7.
BEGIN failed--compilation aborted at t/basic.t line 7.
t/basic.t ......... 
Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run 
...

Probably caused by a change in Time::HiRes. From perldoc perl5433delta:

Time::HiRes has been upgraded from version 1.9778 to 1.9779.
...
now has the same prototype as perl's built-in sleep function

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions