Open bharath1097 opened 7 years ago
I am trying to install NativeHelpers-Blob on armv7 linux because DBIish depends on it and i am running into test failures.
==> Testing NativeHelpers::Blob t/00-trivial.t .. ok t/01-basic.t .... ok # Failed test 'Works!' # at t/02-cstruct.t line 113 # expected: 'x:3, y:30, z:300' # got: 'x:128849018880, y:1288490188800, z:-5412369730306572288' # Failed test 'The same data' # at t/02-cstruct.t line 115 # expected: 'x:3, y:30, z:300' # got: 'x:128849018880, y:1288490188800, z:-5412369730306572288' # Looks like you failed 2 tests of 35 t/02-cstruct.t .. Dubious, test returned 2 (wstat 512, 0x200) Failed 2/35 subtests t/03-pointer.t .. ok t/99-my-meta.t .. ok Test Summary Report ------------------- t/02-cstruct.t (Wstat: 512 Tests: 35 Failed: 2) Failed tests: 29-30 Non-zero exit status: 2 Files=5, Tests=71, 52 wallclock secs ( 0.12 usr 0.01 sys + 46.17 cusr 3.30 csys = 49.60 CPU) Result: FAIL
These are the tests that are failing
is shown($la.base, 3), 'x:3, y:30, z:300', `'Works!'; is shown($lum.base, 3), 'x:3, y:30, z:300', 'The same data';
I tried to debug a bit by printing out the memory representation of the struct and seems to me like an endianness problem.
This is how the struct looked like when i printed each word in hex.
03 00 00 00 00 00 00 00 1e 00 00 00 00 00 00 00 2c 01 00 00 00 00 00 00
I am trying to install NativeHelpers-Blob on armv7 linux because DBIish depends on it and i am running into test failures.
These are the tests that are failing
I tried to debug a bit by printing out the memory representation of the struct and seems to me like an endianness problem.
This is how the struct looked like when i printed each word in hex.