Skip to content

Commit

Permalink
Remove stray error annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
tiif committed Dec 12, 2024
1 parent f8f2c8a commit 7a2af19
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Empty file.
2 changes: 1 addition & 1 deletion tests/pass-dep/libc/libc-socketpair.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ fn test_blocking_write() {
let thread1 = thread::spawn(move || {
let data = "abc".as_bytes().as_ptr();
// The write below will be blocked because the buffer is already full.
let res = unsafe { libc::write(fds[0], data as *const libc::c_void, 3) }; //~ERROR: deadlock
let res = unsafe { libc::write(fds[0], data as *const libc::c_void, 3) };
assert_eq!(res, 3);
});
let thread2 = thread::spawn(move || {
Expand Down

0 comments on commit 7a2af19

Please sign in to comment.