Skip to content

Commit

Permalink
Expanded bool
Browse files Browse the repository at this point in the history
  • Loading branch information
nikarh authored and Thomasdezeeuw committed Oct 9, 2023
1 parent f1349f3 commit f61a788
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/socket.rs
Expand Up @@ -297,7 +297,7 @@ pub fn assert_nonblocking(socket: &Socket, want: bool) {
#[cfg(all(feature = "all", unix))]
assert_eq!(socket.nonblocking().unwrap(), want, "non-blocking option");

#[cfg(all(not(target_os = "vita"), not(all(feature = "all", unix))))]
#[cfg(not(any(all(feature = "all", unix), target_os = "vita")))]
{
let flags = unsafe { libc::fcntl(socket.as_raw_fd(), libc::F_GETFL) };
assert_eq!(flags & libc::O_NONBLOCK != 0, want, "non-blocking option");
Expand Down

0 comments on commit f61a788

Please sign in to comment.