Skip to content

Commit 036db07

Browse files
agroverSteveLauC
andauthored
Update test/sys/test_socket.rs
Co-authored-by: SteveLauC <[email protected]>
1 parent f92993f commit 036db07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/sys/test_socket.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1516,7 +1516,7 @@ fn test_too_large_cmsgspace() {
15161516
#[test]
15171517
fn test_too_small_cmsgspace() {
15181518
let space = vec![0u8; 4];
1519-
assert!(test_impl_scm_credentials_and_rights(space).is_err());
1519+
assert_eq!(test_impl_scm_credentials_and_rights(space), Err(nix::errno::Errno::ENOBUF));
15201520
}
15211521

15221522
#[cfg(linux_android)]

0 commit comments

Comments
 (0)