mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 14:03:58 +00:00
Fix formatting of new test
This commit is contained in:
parent
4e95a3713e
commit
7c173c4b45
1 changed files with 5 additions and 2 deletions
|
@ -10,7 +10,10 @@ fn test_fd_cloexec() {
|
|||
let file = File::create("test_file_for_fd_cloexec").unwrap();
|
||||
let fd = file.as_raw_fd();
|
||||
unsafe {
|
||||
assert_eq!(libc::fcntl(fd, libc::F_GETFD) & libc::FD_CLOEXEC, libc::FD_CLOEXEC);
|
||||
assert_eq!(
|
||||
libc::fcntl(fd, libc::F_GETFD) & libc::FD_CLOEXEC,
|
||||
libc::FD_CLOEXEC
|
||||
);
|
||||
}
|
||||
let _ = std::fs::remove_file("test_file_for_fd_cloexec");
|
||||
let _ = std::fs::remove_file("test_file_for_fd_cloexec");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue