Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux::sock_ctrl_msg::tests::buffer_len assert failure on armhf #190

Open
mjt0k opened this issue Apr 16, 2023 · 1 comment
Open

linux::sock_ctrl_msg::tests::buffer_len assert failure on armhf #190

mjt0k opened this issue Apr 16, 2023 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@mjt0k
Copy link

mjt0k commented Apr 16, 2023

failures:

---- 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

This is this code:
        assert_eq!(
            CMSG_SPACE!(size_of::()),
            size_of::() + size_of::()
        );

I guess this is due to wrong size/type used in some structure.

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

@andreeaflorescu andreeaflorescu added the help wanted Extra attention is needed label Apr 19, 2023
@plugwash
Copy link

plugwash commented May 6, 2023

The structures themselves look fine to me, it's the test code that seems to be wrong.

Patch at (along with issue 191) https://salsa.debian.org/rust-team/debcargo-conf/-/blob/1d296fda82959651ff7358066dcb4425941a2060/src/vmm-sys-util/debian/patches/fix-tests-32-bit.patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants