From 7a2af19bb1b6fd4f26191809ea000e9fcaf5381a Mon Sep 17 00:00:00 2001 From: tiif Date: Fri, 13 Dec 2024 03:43:35 +0800 Subject: [PATCH] Remove stray error annotation --- tests/fail-dep/libc/socketpair_block_read_twice.rs | 0 tests/pass-dep/libc/libc-socketpair.rs | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 tests/fail-dep/libc/socketpair_block_read_twice.rs diff --git a/tests/fail-dep/libc/socketpair_block_read_twice.rs b/tests/fail-dep/libc/socketpair_block_read_twice.rs new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tests/pass-dep/libc/libc-socketpair.rs b/tests/pass-dep/libc/libc-socketpair.rs index 64decb6c3b..76f8e80a8b 100644 --- a/tests/pass-dep/libc/libc-socketpair.rs +++ b/tests/pass-dep/libc/libc-socketpair.rs @@ -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 || {