Closed douglasdd closed 4 years ago
What is the output of t/031-deferred-AE.t
?
Looks like the line my $w = AnyEvent->timer( after => 0, cb => sub{ $cv->send } );
is not playing ball, whereas setting the after
to be 1
works. Hmmm...
I got bit by this too. Same error output.
$ cpanm -V Promises
...
t/031-deferred-AE.t .............. 1/?
# Failed test '... run asynchronously'
# at t/031-deferred-AE.t line 26.
# got: '0'
# expected: '1'
# Looks like you failed 1 test of 2.
t/031-deferred-AE.t .............. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests
t/031-deferred-io-async.t ........ ok
t/032-deferred-AnyEvent.t ........ 1/?
# Failed test '... run asynchronously'
# at t/032-deferred-AnyEvent.t line 26.
# got: '0'
# expected: '1'
# Looks like you failed 1 test of 2.
t/032-deferred-AnyEvent.t ........ Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests
...
Test Summary Report
-------------------
t/031-deferred-AE.t (Wstat: 256 Tests: 2 Failed: 1)
Failed test: 2
Non-zero exit status: 1
t/032-deferred-AnyEvent.t (Wstat: 256 Tests: 2 Failed: 1)
Failed test: 2
Non-zero exit status: 1
Files=36, Tests=170, 12 wallclock secs ( 0.16 usr 0.03 sys + 2.65 cusr 0.33 csys = 3.17 CPU)
Result: FAIL
Failed 2/36 test programs. 2/170 subtests failed.
make: *** [Makefile:949: test_dynamic] Error 255
FAIL
! Installing Promises failed. See /home/randomgeek/.cpanm/work/1578272281.32148/build.log for details. Retry with --force to force install it.
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Pop!_OS 19.10
Release: 19.10
Codename: eoan
$ perl --version
This is perl 5, version 30, subversion 0 (v5.30.0) built for x86_64-linux
(with 1 registered patch, see perl -V for more detail)
$ perl -V | grep -i patch
Locally applied patches:
Devel::PatchPerl 1.52
Patch on tests written. Release should happen sometime tonight
Yay, thanks!
aaaand it's on its way to CPAN! \o/
Perhaps similar to https://github.com/stevan/promises-perl/issues/87
I've tried and failed to instal
AnyEvent-HTTP-2.24
thenPromises-1.02
into two different fresh perl installations (using theplenv
binary manager: https://github.com/tokuhirom/plenv).Attached:
the build logs from perl 5.30.1 promises-build-5-30-1.log and the SAME result from perl 5.14.4!) promises-build-5-14-4.log
Linux Ubuntu 18.04 / x86_64 $ uname -a Linux rowan 4.15.0-47-generic #50-Ubuntu SMP Wed Mar 13 10:44:52 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
$ env | egrep '^(PATH|PERL|PLENV)' PATH=/home/ddd/.plenv/shims:/home/ddd/.plenv/bin:/home/ddd/bin/linux-x86_64:/home/ddd/bin:/home/ddd/ds/bin:/home/ddd/work/home/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/games:/snap/bin:/bin PLENV_SHELL=bash PLENV_VERSION=5.30.1
$ type -a perl perl is /home/ddd/.plenv/shims/perl perl is /usr/bin/perl
$ perl --version This is perl 5, version 30, subversion 1 (v5.30.1) built for x86_64-linux ... <<attached full output from
perl -V
>>$ env | egrep '^(PATH|PERL|PLENV)' PATH=/home/ddd/.plenv/shims:/home/ddd/.plenv/bin:/home/ddd/bin/linux-x86_64:/home/ddd/bin:/home/ddd/ds/bin:/home/ddd/work/home/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/games:/snap/bin:/bin PLENV_SHELL=bash PLENV_VERSION=5.30.1
$ type -a perl perl is /home/ddd/.plenv/shims/perl perl is /usr/bin/perl
$ plenv install 5.30.1 $ plenv local 5.30.1 $ plenv shell 5.30.1 $ plenv versions system 5.14.4
$ type -a perl perl is /home/ddd/.plenv/shims/perl perl is /usr/bin/perl
$ plenv install-cpanm $ type -a cpanm cpanm is /home/ddd/.plenv/shims/cpanm $ plenv which cpanm
/home/ddd/.plenv/versions/5.30.1/bin/cpanm
$ cpanm AnyEvent::HTTP --> Working on AnyEvent::HTTP ... 4 distributions installed
$ cpanm Promises --> Working on Promises ... Test Summary Report
t/031-deferred-AE.t (Wstat: 256 Tests: 2 Failed: 1) Failed test: 2 Non-zero exit status: 1 t/032-deferred-AnyEvent.t (Wstat: 256 Tests: 2 Failed: 1) Failed test: 2 Non-zero exit status: 1 Files=36, Tests=155, 10 wallclock secs ( 0.14 usr 0.08 sys + 4.07 cusr 0.54 csys = 4.83 CPU) Result: FAIL Failed 2/36 test programs. 2/155 subtests failed. Makefile:947: recipe for target 'test_dynamic' failed make: *** [test_dynamic] Error 255 -> FAIL Installing Promises failed. See /home/ddd/.cpanm/work/1577367375.6160/build.log for details. Retry with --force to force install it.