From 3d0b378c40a41ff697d211bc6ddd88713039a430 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sat, 10 Jan 2026 11:32:29 +0100 Subject: [PATCH] test_wwrite_to_fd: remove redundant assertion Also should have been -1, not 0. Ref: https://github.com/fish-shell/fish-shell/pull/12199#discussion_r2677040787 --- src/wutil/mod.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/wutil/mod.rs b/src/wutil/mod.rs index 0dd810635..78b7795d3 100644 --- a/src/wutil/mod.rs +++ b/src/wutil/mod.rs @@ -660,7 +660,6 @@ fn test_wwrite_to_fd() { for &size in &sizes { let fd = unsafe { let res = libc::open(filename.as_ptr(), O_RDWR | O_TRUNC | O_CREAT, 0o666); - assert!(res != 0); OwnedFd::from_raw_fd(res) }; let mut input = Vec::new();