Skip to content

test failures in linux tests on i386 due to alignment expectatin failures #191

@mjt0k

Description

@mjt0k

This one is somewhat fun: on i386, we have alignment expectations wrong:

---- linux::aio::test::bindgen_test_layout_iocb stdout ----
thread 'linux::aio::test::bindgen_test_layout_iocb' panicked at 'assertion failed: `(left == right)`
  left: `4`,
 right: `8`: Alignment ofIoControlBlock', src/linux/aio.rs:356:9

        assert_eq!(
            ::std::mem::align_of::(),
            8usize,
            concat!("Alignment of", stringify!(IoControlBlock))
        );

---- linux::aio::test::bindgen_test_layout_io_event stdout ----
thread 'linux::aio::test::bindgen_test_layout_io_event' panicked at 'assertion failed: `(left == right)`
  left: `4`,
 right: `8`: Alignment ofIoEvent', src/linux/aio.rs:342:9

        assert_eq!(
            ::std::mem::align_of::(),
            8usize,
            concat!("Alignment of", stringify!(IoEvent))
        );

---- linux::sock_ctrl_msg::tests::buffer_len stdout ----
thread 'linux::sock_ctrl_msg::tests::buffer_len' panicked at 'assertion failed: `(left == right)`
  left: `20`,
 right: `16`', src/linux/sock_ctrl_msg.rs:479:13

        assert_eq!(
            CMSG_SPACE!(size_of::()),
            size_of::() + size_of::()
        );

The last one also triggers on armhf (another issue I reported). Also, all of them has missing space, "Alignment ofIoEvent".

https://ci.debian.net/data/autopkgtest/testing/i386/r/rust-vmm-sys-util/32900927/log.gz

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions