Skip to content
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

Tests Fail #28

Closed
zoffixznet opened this issue Jul 5, 2016 · 5 comments
Closed

Tests Fail #28

zoffixznet opened this issue Jul 5, 2016 · 5 comments

Comments

@zoffixznet
Copy link
Contributor

Tests fail:

$ prove -e 'perl6' -vlr t/
t/client.t .. ===SORRY!===
Expected MAST::Frame, but didn't get one
Dubious, test returned 1 (wstat 256, 0x100)
No subtests run 
t/server.t .. 
1..29
ok 1 - The object is-a 'JSON::RPC::Server'
ok 2 - rpc call with positional parameters
ok 3 - rpc call with positional parameters
ok 4 - rpc call with named parameters
ok 5 - rpc call with named parameters
ok 6 - a Notification
ok 7 - a Notification
ok 8 - rpc call of non-existent method
ok 9 - rpc call with invalid JSON
ok 10 - rpc call with invalid Request object
ok 11 - rpc call Batch, invalid JSON
ok 12 - rpc call with an empty Array
ok 13 - rpc call with an invalid Batch (but not empty)
ok 14 - rpc call with invalid Batch
ok 15 - rpc call Batch
ok 16 - rpc call Batch (all notifications)
ok 17 - no params and empty response
ok 18 - method named rpc can be called
ok 19 - parse error (empty string)
ok 20 - parse error (top container is not JSON Object or Array)
ok 21 - invalid request (null is not the same as omitted params)
ok 22 - invalid params (no candidate found)
ok 23 - private method not found
ok 24 - batch recursion forbidden
ok 25 - null id does not mean notification (null is not the same as omitted id)
ok 26 - internal error
ok 27 - custom error
ok 28 - can invoke language built-in method name
ok 29 - notification was processed
ok

Test Summary Report
-------------------
t/client.t (Wstat: 256 Tests: 0 Failed: 0)
  Non-zero exit status: 1
  Parse errors: No plan found in TAP output
Files=2, Tests=29,  8 wallclock secs ( 0.04 usr  0.00 sys +  8.06 cusr  0.35 csys =  8.45 CPU)
Result: FAIL
@bbkr
Copy link
Owner

bbkr commented Jul 5, 2016

Thanks for the report. What is your Perl6 version?

@zoffixznet
Copy link
Contributor Author

zoffixznet commented Jul 5, 2016

There were several people in #perl6 channel for whom the tests were failing while attempting to install Task::Star.

My system:

$ perl6 -v
This is Rakudo version 2016.06-10-g7cff429 built on MoarVM version 2016.06
implementing Perl 6.c.

$ uname -a
Linux  3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

$ lsb_release -a
LSB Version:    core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch
Distributor ID: Ubuntu
Description:    Ubuntu 12.04 LTS
Release:    12.04
Codename:   precise

$ lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                2
On-line CPU(s) list:   0,1
Thread(s) per core:    1
Core(s) per socket:    2
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 23
Stepping:              6
CPU MHz:               1998.000
BogoMIPS:              5984.98
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              6144K
NUMA node0 CPU(s):     0,1

@bbkr
Copy link
Owner

bbkr commented Jul 5, 2016

This looks like LWP::Simple issue (or IO::Socket::SSL), for example:

Zonk.pm

use LWP::Simple;
unit class Zonk;

Error occurs when module is loaded:

$ perl6 -I. -e 'use Zonk;'
===SORRY!===
Expected MAST::Frame, but didn't get one

I'm reporting it to LWP.

@bbkr
Copy link
Owner

bbkr commented Jul 5, 2016

@bbkr
Copy link
Owner

bbkr commented Oct 30, 2016

Fixed, this was LWP SSL loading bug.

@bbkr bbkr closed this as completed Oct 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants