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

Parse unix address from sockaddr without length #2564

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Add test

618f557
Select commit
Loading
Failed to load commit list.
Open

Parse unix address from sockaddr without length #2564

Add test
618f557
Select commit
Loading
Failed to load commit list.
Cirrus CI / Linux aarch64 musl failed Dec 18, 2024 in 4m 16s

Task Summary

Instruction test failed in 00:01

Details

✅ 00:03 clone
✅ 00:03 setup
✅ 04:07 build
❌ 00:01 test

warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag
warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag
warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag
warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag
warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag
warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag
warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag
warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag
warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag
warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag
warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag
warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag
warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag
warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag
    Finished test [unoptimized + debuginfo] target(s) in 0.04s
     Running unittests src/lib.rs (target/aarch64-unknown-linux-musl/debug/deps/nix-f1a718be96c607e3)

running 20 tests
test features::os::test_parsing_kernel_version ... ok
test ifaddrs::tests::test_getifaddrs ... ok
test ifaddrs::tests::test_getifaddrs_netmask_correct ... ok
test sys::socket::addr::tests::link::linux_loopback ... ok
test sys::socket::addr::tests::link::size ... ok
test sys::socket::addr::tests::sockaddr_in6::display ... ok
test sys::socket::addr::tests::sockaddr_in6::ip ... ok
test sys::socket::addr::tests::sockaddr_in6::size ... ok
test sys::socket::addr::tests::sockaddr_in6::to_and_from ... ok
test sys::socket::addr::tests::sockaddr_in::display ... ok
test sys::socket::addr::tests::sockaddr_in::ip ... ok
test sys::socket::addr::tests::sockaddr_in::size ... ok
test sys::socket::addr::tests::sockaddr_storage::from_sockaddr_un_abstract_named ... ok
test sys::socket::addr::tests::sockaddr_storage::from_sockaddr_un_abstract_unnamed ... ok
test sys::socket::addr::tests::sockaddr_storage::from_sockaddr_un_named ... ok
test sys::socket::addr::tests::sockaddr_storage::from_sockaddr_un_named_no_length ... FAILED
test sys::socket::addr::tests::types::test_ipv4addr_to_libc ... ok
test sys::socket::addr::tests::types::test_ipv6addr_to_libc ... ok
test sys::socket::addr::tests::unixaddr::abstract_sun_path ... ok
test sys::socket::addr::tests::unixaddr::size ... ok

failures:

---- sys::socket::addr::tests::sockaddr_storage::from_sockaddr_un_named_no_length stdout ----
thread 'sys::socket::addr::tests::sockaddr_storage::from_sockaddr_un_named_no_length' panicked at 'assertion failed: `(left == right)`
  left: `110`,
 right: `17`', src/sys/socket/addr.rs:2405:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    sys::socket::addr::tests::sockaddr_storage::from_sockaddr_un_named_no_length

test result: FAILED. 19 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

error: test failed, to rerun pass `--lib`

Exit status: 101