Skip to content

Instantly share code, notes, and snippets.

@zoffixznet
Created November 19, 2016 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zoffixznet/bc547c40206a503e652b634378d6b141 to your computer and use it in GitHub Desktop.
Save zoffixznet/bc547c40206a503e652b634378d6b141 to your computer and use it in GitHub Desktop.
cpan@perlbuild2/tmp/release/nqp (master)$ prove -r -v --exec ./nqp-j t/serialization/01-basic.t
t/serialization/01-basic.t ..
1..1494
ok 1 - scsetdesc has correct return value
ok 2 - scgetdesc
ok 3 - scgethandle
ok 4 - pushcompsc return correct value
ok 5 - pushcompsc return correct value
ok 6 - popping the correct sc
ok 7 - again popping the correct sc
ok 8 - nqp::getobjsc on an object without sc
ok 9 - nqp::getobjsc
ok 10 - nqp::scgetobjidx
ok 11 - serialized empty SC to non-empty string
ok 12 - output is at least as long as the header
ok 13 - deserialized SC is also empty
ok 14 - serialized SC with P6int output longer than a header
ok 15 - deserialized SC has a single object
ok 16 - deserialized object has correct type
ok 17 - deserialized object has correct value
ok 18 - serialized SC with P6num output longer than a header
ok 19 - deserialized SC has a single object
ok 20 - deserialized object has correct type
ok 21 - deserialized object has correct value
ok 22 - serialized SC with P6str output longer than a header
ok 23 - deserialized SC has a single object
ok 24 - deserialized object has correct type
ok 25 - deserialized object has correct value
ok 26 - serialized SC with P6opaque output longer than a header
ok 27 - deserialized SC has a single object
ok 28 - deserialized object has correct type
ok 29 - P6int attribute has correct value
ok 30 - P6num attribute has correct value
ok 31 - P6str attribute has correct value
ok 32 - serialized SC with P6opaque output longer than a header
ok 33 - deserialized SC has 2 objects
ok 34 - first deserialized object has correct type
ok 35 - second deserialized object has correct type
ok 36 - reference from first object to second ok
ok 37 - reference from second object to first ok
ok 38 - deserialized SC has 3 objects - the one we added and two discovered
ok 39 - first deserialized object has correct type
ok 40 - second deserialized object has correct type
ok 41 - third deserialized object has correct type
ok 42 - reference from first object to second ok
ok 43 - first object value attribute is ok
ok 44 - reference from second object to third ok
ok 45 - second object value attribute is ok
ok 46 - third object value attribute is ok
ok 47 - deserialized SC has a single object
ok 48 - deserialized object has correct type
ok 49 - Integer survived serialization
ok 50 - Float survived serialization
ok 51 - String survived serialization
ok 52 - deserialized object has correct type
ok 53 - array a came back with correct element count
ok 54 - array a first element is correct
ok 55 - array a second element is correct
ok 56 - array a third element is fine
ok 57 - array b came back with correct element count
ok 58 - array b first element is correct
ok 59 - array b nested array has correct element count
ok 60 - array b nested array first element ok
ok 61 - array b nested array second element ok
ok 62 - array b third element is correct
ok 63 - deserialized object has correct type
ok 64 - hash came back with correct element count
ok 65 - hash first element is correct
ok 66 - hash second element is correct
ok 67 - deserialized object has correct type
ok 68 - integer array came back with correct element count
ok 69 - integer array first element is correct
ok 70 - integer array second element is correct
ok 71 - integer array third element is correct
ok 72 - deserialized object has correct type
ok 73 - string array came back with correct element count
ok 74 - string array first element is correct
ok 75 - string array second element is correct
ok 76 - string array third element is correct
ok 77 - deserialized SC has a single object
ok 78 - deserialized object has correct type
not ok 79 - Multi cache ends up null
not ok 80 - File handle ends up null
ok 81 - deserialized SC has a single object
ok 82 - deserialized array has correct type
ok 83 - deserialize array has correct number of elements
ok 84 - 0th element of array is correct
ok 85 - 1st element of array is correct
java.lang.RuntimeException: Unimplemented case of read_ref
in round_trip_int_array (t/serialization/01-basic.t:510)
in <mainline> (t/serialization/01-basic.t:522)
in eval (gen/jvm/stage2/NQPHLL.nqp:1119)
in evalfiles (gen/jvm/stage2/NQPHLL.nqp:1322)
in command_eval (gen/jvm/stage2/NQPHLL.nqp:1216)
in command_line (gen/jvm/stage2/NQPHLL.nqp:1190)
in MAIN (gen/jvm/stage2/NQP.nqp:4058)
in <mainline> (gen/jvm/stage2/NQP.nqp:4054)
in (gen/jvm/stage2/NQP.nqp)
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1411/1494 subtests
Test Summary Report
-------------------
t/serialization/01-basic.t (Wstat: 256 Tests: 85 Failed: 2)
Failed tests: 79-80
Non-zero exit status: 1
Parse errors: Bad plan. You planned 1494 tests but ran 85.
Files=1, Tests=85, 3 wallclock secs ( 0.03 usr 0.00 sys + 15.59 cusr 0.57 csys = 16.19 CPU)
Result: FAIL
cpan@perlbuild2/tmp/release/nqp (master)$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment