Skip to content

Test fail with Big-Endian architectures #6

@guimard

Description

@guimard

Hi,

when trying to launch test with a S390x machine, test fail with:

ok 10 should be deeply equivalent
 77s # handle all TA types
 77s not ok 11 BigInt64Array should be converted to Buffer correctly
 77s   ---
 77s     operator: deepEqual
 77s     expected: <Buffer 4e f3 30 a6 4b 9b b6 01 78 b4 f8 49 5f da b4 0d>
 77s     actual:   <Buffer 01 b6 9b 4b a6 30 f3 4e 0d b4 da 5f 49 f8 b4 78>
 77s     at: <anonymous> (/tmp/autopkgtest-lxc.pymxjoyv/downtmp/autopkgtest_tmp/smoke4IolJr/test/index.js:65:5)
 77s     stack: |-
 77s       Error: BigInt64Array should be converted to Buffer correctly
 77s           at Test.assert [as _assert] (/usr/share/nodejs/tape/lib/test.js:312:48)
 77s           at Test.bound [as _assert] (/usr/share/nodejs/tape/lib/test.js:95:17)
 77s           at Test.tapeDeepEqual (/usr/share/nodejs/tape/lib/test.js:553:7)
 77s           at Test.bound [as deepEqual] (/usr/share/nodejs/tape/lib/test.js:95:17)
 77s           at /tmp/autopkgtest-lxc.pymxjoyv/downtmp/autopkgtest_tmp/smoke4IolJr/test/index.js:65:5
 77s           at forEachArray (/usr/share/nodejs/for-each/index.js:12:17)
 77s           at forEach (/usr/share/nodejs/for-each/index.js:54:9)
 77s           at Test.<anonymous> (/tmp/autopkgtest-lxc.pymxjoyv/downtmp/autopkgtest_tmp/smoke4IolJr/test/index.js:51:2)
 77s           at Test.bound [as _cb] (/usr/share/nodejs/tape/lib/test.js:95:17)
 77s           at Test.run (/usr/share/nodejs/tape/lib/test.js:115:28)
 77s   ...
 77s not ok 12 BigUint64Array should be converted to Buffer correctly
 77s   ---
 77s     operator: deepEqual
 77s     expected: <Buffer 4e f3 30 a6 4b 9b b6 01 78 b4 f8 49 5f da b4 0d>
 77s     actual:   <Buffer 01 b6 9b 4b a6 30 f3 4e 0d b4 da 5f 49 f8 b4 78>
 77s     at: <anonymous> (/tmp/autopkgtest-lxc.pymxjoyv/downtmp/autopkgtest_tmp/smoke4IolJr/test/index.js:65:5)
 77s     stack: |-
 77s       Error: BigUint64Array should be converted to Buffer correctly
 77s           at Test.assert [as _assert] (/usr/share/nodejs/tape/lib/test.js:312:48)
 77s           at Test.bound [as _assert] (/usr/share/nodejs/tape/lib/test.js:95:17)
 77s           at Test.tapeDeepEqual (/usr/share/nodejs/tape/lib/test.js:553:7)
 77s           at Test.bound [as deepEqual] (/usr/share/nodejs/tape/lib/test.js:95:17)
 77s           at /tmp/autopkgtest-lxc.pymxjoyv/downtmp/autopkgtest_tmp/smoke4IolJr/test/index.js:65:5
 77s           at forEachArray (/usr/share/nodejs/for-each/index.js:12:17)
 77s           at forEach (/usr/share/nodejs/for-each/index.js:54:9)
 77s           at Test.<anonymous> (/tmp/autopkgtest-lxc.pymxjoyv/downtmp/autopkgtest_tmp/smoke4IolJr/test/index.js:51:2)
 77s           at Test.bound [as _cb] (/usr/share/nodejs/tape/lib/test.js:95:17)
 77s           at Test.run (/usr/share/nodejs/tape/lib/test.js:115:28)
 77s   ...
 77s not ok 13 Float32Array should be converted to Buffer correctly
 77s   ---
 77s     operator: deepEqual
 77s     expected: <Buffer ec 51 9a 44 14 ae 36 42>
 77s     actual:   <Buffer 44 9a 51 ec 42 36 ae 14>
 77s     at: <anonymous> (/tmp/autopkgtest-lxc.pymxjoyv/downtmp/autopkgtest_tmp/smoke4IolJr/test/index.js:65:5)
 77s     stack: |-
 77s       Error: Float32Array should be converted to Buffer correctly
 77s           at Test.assert [as _assert] (/usr/share/nodejs/tape/lib/test.js:312:48)
 77s           at Test.bound [as _assert] (/usr/share/nodejs/tape/lib/test.js:95:17)
 77s           at Test.tapeDeepEqual (/usr/share/nodejs/tape/lib/test.js:553:7)
 77s           at Test.bound [as deepEqual] (/usr/share/nodejs/tape/lib/test.js:95:17)
 77s           at /tmp/autopkgtest-lxc.pymxjoyv/downtmp/autopkgtest_tmp/smoke4IolJr/test/index.js:65:5
 77s           at forEachArray (/usr/share/nodejs/for-each/index.js:12:17)
 77s           at forEach (/usr/share/nodejs/for-each/index.js:54:9)
 77s           at Test.<anonymous> (/tmp/autopkgtest-lxc.pymxjoyv/downtmp/autopkgtest_tmp/smoke4IolJr/test/index.js:51:2)
 77s           at Test.bound [as _cb] (/usr/share/nodejs/tape/lib/test.js:95:17)
 77s           at Test.run (/usr/share/nodejs/tape/lib/test.js:115:28)
 77s   ...
 77s not ok 14 Float64Array should be converted to Buffer correctly
 77s   ---
 77s     operator: deepEqual
 77s     expected: <Buffer 0a d7 a3 70 3d 4a 93 40 f6 28 5c 8f c2 d5 46 40>
 77s     actual:   <Buffer 40 93 4a 3d 70 a3 d7 0a 40 46 d5 c2 8f 5c 28 f6>
 77s     at: <anonymous> (/tmp/autopkgtest-lxc.pymxjoyv/downtmp/autopkgtest_tmp/smoke4IolJr/test/index.js:65:5)
 77s     stack: |-
 77s       Error: Float64Array should be converted to Buffer correctly
 77s           at Test.assert [as _assert] (/usr/share/nodejs/tape/lib/test.js:312:48)
 77s           at Test.bound [as _assert] (/usr/share/nodejs/tape/lib/test.js:95:17)
 77s           at Test.tapeDeepEqual (/usr/share/nodejs/tape/lib/test.js:553:7)
 77s           at Test.bound [as deepEqual] (/usr/share/nodejs/tape/lib/test.js:95:17)
 77s           at /tmp/autopkgtest-lxc.pymxjoyv/downtmp/autopkgtest_tmp/smoke4IolJr/test/index.js:65:5
 77s           at forEachArray (/usr/share/nodejs/for-each/index.js:12:17)
 77s           at forEach (/usr/share/nodejs/for-each/index.js:54:9)
 77s           at Test.<anonymous> (/tmp/autopkgtest-lxc.pymxjoyv/downtmp/autopkgtest_tmp/smoke4IolJr/test/index.js:51:2)
 77s           at Test.bound [as _cb] (/usr/share/nodejs/tape/lib/test.js:95:17)
 77s           at Test.run (/usr/share/nodejs/tape/lib/test.js:115:28)
 77s   ...
 77s not ok 15 Int16Array should be converted to Buffer correctly
 77s   ---
 77s     operator: deepEqual
 77s     expected: <Buffer d2 04 00 02>
 77s     actual:   <Buffer 04 d2 02 00>
 77s     at: <anonymous> (/tmp/autopkgtest-lxc.pymxjoyv/downtmp/autopkgtest_tmp/smoke4IolJr/test/index.js:65:5)
 77s     stack: |-
 77s       Error: Int16Array should be converted to Buffer correctly
 77s           at Test.assert [as _assert] (/usr/share/nodejs/tape/lib/test.js:312:48)
 77s           at Test.bound [as _assert] (/usr/share/nodejs/tape/lib/test.js:95:17)
 77s           at Test.tapeDeepEqual (/usr/share/nodejs/tape/lib/test.js:553:7)
 77s           at Test.bound [as deepEqual] (/usr/share/nodejs/tape/lib/test.js:95:17)
 77s           at /tmp/autopkgtest-lxc.pymxjoyv/downtmp/autopkgtest_tmp/smoke4IolJr/test/index.js:65:5
 77s           at forEachArray (/usr/share/nodejs/for-each/index.js:12:17)
 77s           at forEach (/usr/share/nodejs/for-each/index.js:54:9)
 77s           at Test.<anonymous> (/tmp/autopkgtest-lxc.pymxjoyv/downtmp/autopkgtest_tmp/smoke4IolJr/test/index.js:51:2)
 77s           at Test.bound [as _cb] (/usr/share/nodejs/tape/lib/test.js:95:17)
 77s           at Test.run (/usr/share/nodejs/tape/lib/test.js:115:28)
 77s   ...
 77s not ok 16 Int32Array should be converted to Buffer correctly
 77s   ---
 77s     operator: deepEqual
 77s     expected: <Buffer d2 04 00 00 00 02 00 00>
 77s     actual:   <Buffer 00 00 04 d2 00 00 02 00>
 77s     at: <anonymous> (/tmp/autopkgtest-lxc.pymxjoyv/downtmp/autopkgtest_tmp/smoke4IolJr/test/index.js:65:5)
 77s     stack: |-
 77s       Error: Int32Array should be converted to Buffer correctly
 77s           at Test.assert [as _assert] (/usr/share/nodejs/tape/lib/test.js:312:48)
 77s           at Test.bound [as _assert] (/usr/share/nodejs/tape/lib/test.js:95:17)
 77s           at Test.tapeDeepEqual (/usr/share/nodejs/tape/lib/test.js:553:7)
 77s           at Test.bound [as deepEqual] (/usr/share/nodejs/tape/lib/test.js:95:17)
 77s           at /tmp/autopkgtest-lxc.pymxjoyv/downtmp/autopkgtest_tmp/smoke4IolJr/test/index.js:65:5
 77s           at forEachArray (/usr/share/nodejs/for-each/index.js:12:17)
 77s           at forEach (/usr/share/nodejs/for-each/index.js:54:9)
 77s           at Test.<anonymous> (/tmp/autopkgtest-lxc.pymxjoyv/downtmp/autopkgtest_tmp/smoke4IolJr/test/index.js:51:2)
 77s           at Test.bound [as _cb] (/usr/share/nodejs/tape/lib/test.js:95:17)
 77s           at Test.run (/usr/share/nodejs/tape/lib/test.js:115:28)
 77s   ...
 77s ok 17 Int8Array should be converted to Buffer correctly
 77s not ok 18 Uint16Array should be converted to Buffer correctly
 77s   ---
 77s     operator: deepEqual
 77s     expected: <Buffer d2 04 00 02>
 77s     actual:   <Buffer 04 d2 02 00>
 77s     at: <anonymous> (/tmp/autopkgtest-lxc.pymxjoyv/downtmp/autopkgtest_tmp/smoke4IolJr/test/index.js:65:5)
 77s     stack: |-
 77s       Error: Uint16Array should be converted to Buffer correctly
 77s           at Test.assert [as _assert] (/usr/share/nodejs/tape/lib/test.js:312:48)
 77s           at Test.bound [as _assert] (/usr/share/nodejs/tape/lib/test.js:95:17)
 77s           at Test.tapeDeepEqual (/usr/share/nodejs/tape/lib/test.js:553:7)
 77s           at Test.bound [as deepEqual] (/usr/share/nodejs/tape/lib/test.js:95:17)
 77s           at /tmp/autopkgtest-lxc.pymxjoyv/downtmp/autopkgtest_tmp/smoke4IolJr/test/index.js:65:5
 77s           at forEachArray (/usr/share/nodejs/for-each/index.js:12:17)
 77s           at forEach (/usr/share/nodejs/for-each/index.js:54:9)
 77s           at Test.<anonymous> (/tmp/autopkgtest-lxc.pymxjoyv/downtmp/autopkgtest_tmp/smoke4IolJr/test/index.js:51:2)
 77s           at Test.bound [as _cb] (/usr/share/nodejs/tape/lib/test.js:95:17)
 77s           at Test.run (/usr/share/nodejs/tape/lib/test.js:115:28)
 77s   ...
 77s not ok 19 Uint32Array should be converted to Buffer correctly
 77s   ---
 77s     operator: deepEqual
 77s     expected: <Buffer d2 04 00 00 00 02 00 00>
 77s     actual:   <Buffer 00 00 04 d2 00 00 02 00>
 77s     at: <anonymous> (/tmp/autopkgtest-lxc.pymxjoyv/downtmp/autopkgtest_tmp/smoke4IolJr/test/index.js:65:5)
 77s     stack: |-
 77s       Error: Uint32Array should be converted to Buffer correctly
 77s           at Test.assert [as _assert] (/usr/share/nodejs/tape/lib/test.js:312:48)
 77s           at Test.bound [as _assert] (/usr/share/nodejs/tape/lib/test.js:95:17)
 77s           at Test.tapeDeepEqual (/usr/share/nodejs/tape/lib/test.js:553:7)
 77s           at Test.bound [as deepEqual] (/usr/share/nodejs/tape/lib/test.js:95:17)
 77s           at /tmp/autopkgtest-lxc.pymxjoyv/downtmp/autopkgtest_tmp/smoke4IolJr/test/index.js:65:5
 77s           at forEachArray (/usr/share/nodejs/for-each/index.js:12:17)
 77s           at forEach (/usr/share/nodejs/for-each/index.js:54:9)
 77s           at Test.<anonymous> (/tmp/autopkgtest-lxc.pymxjoyv/downtmp/autopkgtest_tmp/smoke4IolJr/test/index.js:51:2)
 77s           at Test.bound [as _cb] (/usr/share/nodejs/tape/lib/test.js:95:17)
 77s           at Test.run (/usr/share/nodejs/tape/lib/test.js:115:28)
 77s   ...
 77s ok 20 Uint8Array should be converted to Buffer correctly
 77s ok 21 Uint8ClampedArray should be converted to Buffer correctly
 77s # TA subset view on another one
 77s ok 22 BYTES_PER_ELEMENT: sanity check

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions