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
This commit is contained in:
Johannes Altmanninger
2026-01-10 11:32:29 +01:00
parent aa56359834
commit 3d0b378c40

View File

@@ -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();