Skip to content

Instantly share code, notes, and snippets.

@leto
Created November 26, 2011 19:43
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 leto/1396207 to your computer and use it in GitHub Desktop.
Save leto/1396207 to your computer and use it in GitHub Desktop.
Intermittent test failure in t/pmc/nci.t
```
(datura)(~/git/parrot master$ )$ prove -lrv t/pmc/nci.t
t/pmc/nci.t ..
1..60
ok 1 - load library fails
ok 2 - dlfunc on undef
ok 3 - dlfunc function not found
ok 4 - dlfunc function is defined
ok 5 - dlfunc function pointer
ok 6 - nci_c - return a char in an INTEGER register
ok 7 - nci_d and nci_dlvar_double
ok 8 - nci_f and nci_dlvar_float
ok 9 - nci_l - return a long in an INTEGER register
ok 10 - nci_p - return a pointer to int
ok 11 - nci_s - return a short in an INTEGER register
ok 12 - nci_v and nci_dlvar_int
ok 13 - nci_dd - PASM
ok 14 - nci_dd - PIR
ok 15 - get_string()
ok 16 - nci_fff
ok 17 - nci_isc
ok 18 - nci_ssc
ok 19 - nci_csc
ok 20 - nci_dd - stress test
ok 21 - nci_dd - clone
ok 22 - nci_iiii
ok 23 - nci_pi - struct with ints
ok 24 - nci_pi - struct with floats
ok 25 - nci_pi - align
ok 26 - nci_pi - char*
ok 27 - nci_pi - nested struct *
ok 28 - nci_pi - nested struct * w named access
ok 29 - nci_pi - func_ptr* with signature
ok 30 - nci_pi - nested struct aligned
ok 31 - nci_pi - nested struct unaligned
ok 32 - nci_pi - nested, unaligned, named
ok 33 - nci_pi - int
ok 34 - nci_ip
ok 35 - nci_pi - null
not ok 36 - nci_vP # TODO Disabled to avoid linkage problems, see src/nci_test.c
# Failed (TODO) test 'nci_vP'
# at t/pmc/nci.t line 1292.
# got: 'got null
# got null
# '
# expected: 'ok
# got null
# '
ok 37 - nci_cb_C1 - PASM
ok 38 - nci_cb_C1 - PIR
ok 39 - nci_cb_C2 - PASM
ok 40 - nci_cb_C3 - PIR
ok 41 - nci_cb_D1 - PASM
ok 42 - nci_cb_D2 - PASM
ok 43 - nci_cb_D2 - PIR
ok 44 - nci_cb_D3 - PIR
not ok 45 - nci_cb_D4 - synchronous callbacks
# Failed test 'nci_cb_D4 - synchronous callbacks'
# at t/pmc/nci.t line 1876.
# got: 'created a callback sub
# loaded a function that takes a callback
# external data: 10
# external data: 100
# external data: 1000
# external data: 10000
# external data: 100000
# external data: 1000000
# external data: 10000000
# marked callback as synchronous
# external data: 1
# external data: 11
# external data: 111
# external data: 1111
# external data: 11111
# external data: 111111
# external data: 1111111
# external data: 11111111
# external data: 111111111
# external data: 1111111111
# external data: -1773790778
# '
# expected: 'created a callback sub
# loaded a function that takes a callback
# external data: 10
# external data: 100
# external data: 1000
# external data: 10000
# external data: 100000
# external data: 1000000
# external data: 10000000
# external data: 100000000
# external data: 1000000000
# marked callback as synchronous
# external data: 1
# external data: 11
# external data: 111
# external data: 1111
# external data: 11111
# external data: 111111
# external data: 1111111
# external data: 11111111
# external data: 111111111
# '
ok 46 - nci_pip - array of structs
ok 47 - nci_vpii - nested structs
ok 48 - nci_piiii - nested array in a struct
ok 49 - nci_pii - writing back to libnci_test.so
ok 50 - nci_vv and nci_dlvar_int
ok 51 - dlvar - unknown symbol
ok 52 - dlfunc - unknown symbol
ok 53 - loading same library twice
ok 54 - opcode 'does'
ok 55 - conversion d <-> P
ok 56 - nested structs should be independent
ok 57 - arity
ok 58 - nci_vfff - v_fff parameter
ok 59 - nci_tt - as_string and ByteBuffer
ok 60 - nci_cstring_cstring - as_string and ByteBuffer
# Looks like you failed 1 test of 60.
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/60 subtests
Test Summary Report
-------------------
t/pmc/nci.t (Wstat: 256 Tests: 60 Failed: 1)
Failed test: 45
Non-zero exit status: 1
Files=1, Tests=60, 1 wallclock secs ( 0.04 usr 0.00 sys + 0.60 cusr 0.32 csys = 0.96 CPU)
Result: FAIL
```
@jkeenan
Copy link

jkeenan commented Nov 26, 2011

Test 45 is also the one that has been failing all the time for me on Darwin/PPC since the green threads merge, i.e., since approx Oct 29 2011.

@leto
Copy link
Author

leto commented Nov 28, 2011 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment