[libc-commits] [libc] Reapply "[libc] Return errno from OFD failure paths in fcntl." (#166658) (PR #166846)
via libc-commits
libc-commits at lists.llvm.org
Sun Nov 9 07:06:08 PST 2025
================
@@ -172,13 +172,19 @@ class LibcFcntlCommonLockTests : public LlvmLibcFcntlTest {
int fd =
LIBC_NAMESPACE::open(TEST_FILE, O_CREAT | O_TRUNC | O_RDWR, S_IRWXU);
ASSERT_THAT(LIBC_NAMESPACE::close(fd), Succeeds(0));
- ASSERT_EQ(-1, LIBC_NAMESPACE::fcntl(fd, GETLK_CMD));
+
+ struct flock flk = {};
----------------
lntue wrote:
Nit: remove `struct` if there is no name conflict.
https://github.com/llvm/llvm-project/pull/166846
More information about the libc-commits
mailing list