From a858e25f1cf384af9f7350b92594467321070cf1 Mon Sep 17 00:00:00 2001 From: Siva Chandra Reddy Date: Fri, 28 Jan 2022 16:32:45 +0000 Subject: [PATCH] [libc][NFC] Create file with all permissions for the user in read_write_test. --- libc/test/src/unistd/read_write_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/test/src/unistd/read_write_test.cpp b/libc/test/src/unistd/read_write_test.cpp index 6b86cd1..2113d8c 100644 --- a/libc/test/src/unistd/read_write_test.cpp +++ b/libc/test/src/unistd/read_write_test.cpp @@ -20,7 +20,7 @@ TEST(LlvmLibcUniStd, WriteAndReadBackTest) { using __llvm_libc::testing::ErrnoSetterMatcher::Succeeds; constexpr const char *TEST_FILE = "__unistd_read_write.test"; - int write_fd = __llvm_libc::open(TEST_FILE, O_WRONLY | O_CREAT); + int write_fd = __llvm_libc::open(TEST_FILE, O_WRONLY | O_CREAT, S_IRWXU); ASSERT_EQ(errno, 0); ASSERT_GT(write_fd, 0); constexpr const char HELLO[] = "hello"; -- 2.7.4