From f61a788b887c4bad8b2333fed883d5a4ff16d3b5 Mon Sep 17 00:00:00 2001 From: Nikolay Arhipov Date: Mon, 9 Oct 2023 13:44:53 +0300 Subject: [PATCH] Expanded bool --- tests/socket.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/socket.rs b/tests/socket.rs index ef7180ed..2ab87705 100644 --- a/tests/socket.rs +++ b/tests/socket.rs @@ -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");