# New Ticket Created by  Salve J. Nilsen 
# Please include the string:  [perl #125517]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=125517 >


[nemo@Jolla moar-nom]$ uname -a
Linux Jolla 3.4.106.20150416.1 #1 SMP PREEMPT Thu Apr 23 02:16:13 UTC 2015 
armv7l armv7l armv7l GNU/Linux

Running "make test" gives the following report:

Test Summary Report
-------------------
t/04-nativecall/02-simple-args.t   (Wstat: 256 Tests: 12 Failed: 1)
  Failed test:  11
  Non-zero exit status: 1
t/04-nativecall/03-simple-returns.t (Wstat: 256 Tests: 11 Failed: 1)
  Failed test:  3
  Non-zero exit status: 1
t/04-nativecall/13-union.t         (Wstat: 768 Tests: 28 Failed: 3)
  Failed tests:  2, 15, 24
  Non-zero exit status: 3
Files=40, Tests=514, 236 wallclock secs ( 0.84 usr  0.18 sys + 161.06 cusr  
8.02 csys = 170.10 CPU)
Result: FAIL

=============================================

Here's the output of "prove -e perl6 -v" for the above test files:

=============================================

[nemo@Jolla moar-nom]$ prove -e perl6 -v t/04-nativecall/02-simple-args.t 
t/04-nativecall/03-simple-returns.t t/04-nativecall/13-union.t
t/04-nativecall/02-simple-args.t ..... 
1..12
ok 1 - passed int 42
ok 2 - passed two shorts
ok 3 - passed an int32, int16 and int8
ok 4 - passed a double
ok 5 - passed a float
ok 6 - passed a string
ok 7 - checked previously passed string
ok 8 - wrapped sub
ok 9 - passed int64 0xFFFFFFFFFF
ok 10 - passed uint8 0xFE
not ok 11 - passed uint8 0xFFFE

# Failed test 'passed uint8 0xFFFE'
# at t/04-nativecall/02-simple-args.t line 61
# expected: '11'
#      got: '0'
ok 12 - passed uint8 0xFFFFFFFE
# Looks like you failed 1 test of 12
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/12 subtests 
t/04-nativecall/03-simple-returns.t .. 
1..11
ok 1 - returning int works
ok 2 - returning short works
not ok 3 - returning char works

# Failed test 'returning char works'
# at t/04-nativecall/03-simple-returns.t line 18
# expected: '-103'
#      got: '153'
ok 4 - returning double works
ok 5 - returning float works
ok 6 - returning string works
ok 7 - returning null string pointer
ok 8 - returning int64 works
ok 9 - returning uint8 works
ok 10 - returning uint16 works
ok 11 - returning uint32 works
# Looks like you failed 1 test of 11
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/11 subtests 
t/04-nativecall/13-union.t ........... 
1..28
ok 1 - sizeof union is sizeof biggest member
not ok 2 - sizeof(MyStruct)

# Failed test 'sizeof(MyStruct)'
# at t/04-nativecall/13-union.t line 42
# expected: '32'
#      got: '28'
ok 3 - getting long
ok 4 - getting num
ok 5 - getting int8
ok 6 - getting num32
ok 7 - getting long from C-created struct
ok 8 - getting num from C-created struct
ok 9 - getting int8 from C-created struct
ok 10 - getting num32 from C-created struct
ok 11 - long in union
ok 12 - int in union
ok 13 - short in union
ok 14 - char in union
not ok 15 - sizeof(MyStruct2)

# Failed test 'sizeof(MyStruct2)'
# at t/04-nativecall/13-union.t line 94
# expected: '32'
#      got: '28'
ok 16 - getting long from C-created struct
ok 17 - getting num from C-created struct
ok 18 - getting int8 from C-created struct
ok 19 - getting num32 from C-created struct
ok 20 - long in union*
ok 21 - int in union*
ok 22 - short in union*
ok 23 - char in union*
not ok 24 - sizeof(UnionOfStructs)

# Failed test 'sizeof(UnionOfStructs)'
# at t/04-nativecall/13-union.t line 132
# expected: '32'
#      got: '28'
ok 25 - member a of union is-a MyStruct
ok 26 - member b of union is-a YourStruct
ok 27 - a.byte was set to 42 by C
ok 28 - b.byte must be the same
# Looks like you failed 3 tests of 28
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/28 subtests 

Test Summary Report
-------------------
t/04-nativecall/02-simple-args.t   (Wstat: 256 Tests: 12 Failed: 1)
  Failed test:  11
  Non-zero exit status: 1
t/04-nativecall/03-simple-returns.t (Wstat: 256 Tests: 11 Failed: 1)
  Failed test:  3
  Non-zero exit status: 1
t/04-nativecall/13-union.t         (Wstat: 768 Tests: 28 Failed: 3)
  Failed tests:  2, 15, 24
  Non-zero exit status: 3
Files=3, Tests=51, 26 wallclock secs ( 0.22 usr  0.04 sys + 24.47 cusr  0.92 
csys = 25.65 CPU)
Result: FAIL

Reply via email to