Skip to content

Commit

Permalink
Remove commented out failing check that shouldn't pass.
Browse files Browse the repository at this point in the history
  • Loading branch information
khuey committed Aug 15, 2021
1 parent e33e7c1 commit ec45bfc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions test/sys/test_socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ pub fn test_inetv6_addr_roundtrip_sockaddr_storage_to_addr() {
let mut storage = MaybeUninit::<sockaddr_storage>::zeroed();
let storage_ptr = storage.as_mut_ptr().cast::<sockaddr_in6>();
let (ffi_ptr, ffi_size) = sockaddr.as_ffi_pair();
// XXX this does not pass.
// assert_eq!(mem::size_of::<sockaddr>(), ffi_size as usize);
assert_eq!(mem::size_of::<sockaddr_in6>(), ffi_size as usize);
unsafe {
storage_ptr.copy_from_nonoverlapping((ffi_ptr as *const sockaddr).cast::<sockaddr_in6>(), 1);
Expand Down

0 comments on commit ec45bfc

Please sign in to comment.