Leonardo Arena faec38acfe main/py-cffi: disable tests also for aarch64
=================================== FAILURES ===================================
_________________________ TestFFI.test_struct_by_value _________________________

self = <testing.cffi0.test_ffi_backend.TestFFI object at 0xfff247db0a50>

    def test_struct_by_value(self):
        if self.module is None:
            py.test.skip("fix the auto-generation of the tiny test lib")
        ffi = FFI(backend=self.Backend())
        ffi.cdef("""
            typedef struct {
                long x;
                long y;
            } POINT;

            typedef struct {
                long left;
                long top;
                long right;
                long bottom;
            } RECT;

            long left, top, right, bottom;

            RECT ReturnRect(int i, RECT ar, RECT* br, POINT cp, RECT dr,
                        RECT *er, POINT fp, RECT gr);
        """)
        ownlib = ffi.dlopen(self.module)

        rect = ffi.new('RECT[1]')
        pt = ffi.new('POINT[1]')
        pt[0].x = 15
        pt[0].y = 25
        rect[0].left = ownlib.left
        rect[0].right = ownlib.right
        rect[0].top = ownlib.top
        rect[0].bottom = ownlib.bottom

        for i in range(4):
            ret = ownlib.ReturnRect(i, rect[0], rect, pt[0], rect[0],
                                    rect, pt[0], rect[0])
>           assert ret.left == ownlib.left
E           AssertionError: assert -200 == 10
E            +  where -200 = <cdata 'RECT' owning 32 bytes>.left
E            +  and   10 = <cffi.api.FFILibrary_/tmp/ffi-0/testownlib.so object at 0xfff247de1f50>.left

testing/cffi0/test_ownlib.py:296: AssertionError
_______________________ TestOwnLib.test_struct_by_value ________________________

self = <testing.cffi0.test_ownlib.TestOwnLib object at 0xfff24884d550>

    def test_struct_by_value(self):
        if self.module is None:
            py.test.skip("fix the auto-generation of the tiny test lib")
        ffi = FFI(backend=self.Backend())
        ffi.cdef("""
            typedef struct {
                long x;
                long y;
            } POINT;

            typedef struct {
                long left;
                long top;
                long right;
                long bottom;
            } RECT;

            long left, top, right, bottom;

            RECT ReturnRect(int i, RECT ar, RECT* br, POINT cp, RECT dr,
                        RECT *er, POINT fp, RECT gr);
        """)
        ownlib = ffi.dlopen(self.module)

        rect = ffi.new('RECT[1]')
        pt = ffi.new('POINT[1]')
        pt[0].x = 15
        pt[0].y = 25
        rect[0].left = ownlib.left
        rect[0].right = ownlib.right
        rect[0].top = ownlib.top
        rect[0].bottom = ownlib.bottom

        for i in range(4):
            ret = ownlib.ReturnRect(i, rect[0], rect, pt[0], rect[0],
                                    rect, pt[0], rect[0])
>           assert ret.left == ownlib.left
E           AssertionError: assert -200 == 10
E            +  where -200 = <cdata 'RECT &' 0xaaace719ec20>.left
E            +  and   10 = <cffi.api.FFILibrary_/tmp/ffi-0/testownlib.so object at 0xfff24886a0d0>.left

testing/cffi0/test_ownlib.py:296: AssertionError
 2 failed, 1861 passed, 106 skipped, 4 xfailed, 508 warnings in 929.02 seconds =
2019-02-06 14:11:38 +00:00
..