[libc][NFC] Create file with all permissions for the user in read_write_test.

This commit is contained in:
Siva Chandra Reddy 2022-01-28 16:32:45 +00:00
parent 6f4f745668
commit a858e25f1c
1 changed files with 1 additions and 1 deletions

View File

@ -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";