Skip to content
This repository

M0 C implementation fails on t/m0/m0_integration.t #733

Open
leto opened this Issue March 10, 2012 · 2 comments

1 participant

Duke Leto
Duke Leto
Owner
leto commented March 10, 2012
(~/git/parrot m0$ )$ M0_INTERP=./src/m0/c/m0-debug prove -lrv t/m0/m0_integration.t 
t/m0/m0_integration.t .. 
1..60
ok 1 - Got a successful exit code assembling t/m0/integration/m0_add_i.m0
ok 2 - t/m0/integration/m0_add_i.m0 passes
ok 3 - Got a successful exit code assembling t/m0/integration/m0_add_n.m0
ok 4 - t/m0/integration/m0_add_n.m0 passes
ok 5 - Got a successful exit code assembling t/m0/integration/m0_and.m0
ok 6 - t/m0/integration/m0_and.m0 passes
ok 7 - Got a successful exit code assembling t/m0/integration/m0_args.m0
ok 8 - t/m0/integration/m0_args.m0 passes
ok 9 - Got a successful exit code assembling t/m0/integration/m0_ashr.m0
ok 10 - t/m0/integration/m0_ashr.m0 passes
ok 11 - Got a successful exit code assembling t/m0/integration/m0_chunk_name_const.m0
ok 12 - t/m0/integration/m0_chunk_name_const.m0 passes
ok 13 - Got a successful exit code assembling t/m0/integration/m0_convert_i_n.m0
not ok 14 - t/m0/integration/m0_convert_i_n.m0 passes

#   Failed test 't/m0/integration/m0_convert_i_n.m0 passes'
#   at t/m0/m0_integration.t line 54.
#          got: '1'
#     expected: '0'
ok 15 - Got a successful exit code assembling t/m0/integration/m0_deref.m0
ok 16 - t/m0/integration/m0_deref.m0 passes
ok 17 - Got a successful exit code assembling t/m0/integration/m0_div_i.m0
ok 18 - t/m0/integration/m0_div_i.m0 passes
ok 19 - Got a successful exit code assembling t/m0/integration/m0_div_n.m0
ok 20 - t/m0/integration/m0_div_n.m0 passes
ok 21 - Got a successful exit code assembling t/m0/integration/m0_goto_chunk.m0
ok 22 - t/m0/integration/m0_goto_chunk.m0 passes
ok 23 - Got a successful exit code assembling t/m0/integration/m0_hash.m0

In addition to the failing test, m0_hash.m0 goes into an infinite loop.

Duke Leto
Owner
leto commented March 11, 2012

Part of the issue is there are still a few unimplemented ops in the C implementation:

 ./src/m0/c/m0-debug t/m0/integration/m0_convert_i_n.m0b
1..2
Unimplemented op: 14 (14, 74, 0)
nok 1 convert_i_n: 99.0 == 99
Unimplemented op: 14 (14, 74, 0)
nok 2 convert_i_n: -23.0 == -23
Duke Leto
Owner
leto commented March 25, 2012

Current status, after @cotto implemented get_byte and set_byte:

Failed 6/60 subtests 

Test Summary Report
-------------------
t/m0/m0_integration.t     (Wstat: 1536 Tests: 60 Failed: 6)
  Failed tests:  14, 24, 46, 48, 50, 52
  Non-zero exit status: 6
Files=4, Tests=98, 15 wallclock secs ( 0.05 usr  0.00 sys + 15.07 cusr  0.84 csys = 15.96 CPU)
Result: FAIL
make: *** [m0_c_tests] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.