diff --git a/Tests/Kernel/TestEmptyPrivateInodeVMObject.cpp b/Tests/Kernel/TestEmptyPrivateInodeVMObject.cpp index 7cf31bb042..c04db938c4 100644 --- a/Tests/Kernel/TestEmptyPrivateInodeVMObject.cpp +++ b/Tests/Kernel/TestEmptyPrivateInodeVMObject.cpp @@ -30,7 +30,7 @@ TEST_CASE(private_zero_length_inode_vmobject_sync) int rc = sigaction(SIGBUS, &new_action, nullptr); VERIFY(rc == 0); } - int fd = open("/tmp/private_msync_test", O_RDWR | O_CREAT); + int fd = open("/tmp/private_msync_test", O_RDWR | O_CREAT, 0644); VERIFY(fd >= 0); private_ptr = (u8*)mmap(nullptr, 0x1000, PROT_READ | PROT_WRITE, MAP_FILE | MAP_PRIVATE, fd, 0); EXPECT(private_ptr != MAP_FAILED); diff --git a/Tests/Kernel/TestEmptySharedInodeVMObject.cpp b/Tests/Kernel/TestEmptySharedInodeVMObject.cpp index 3900463db2..0178234c56 100644 --- a/Tests/Kernel/TestEmptySharedInodeVMObject.cpp +++ b/Tests/Kernel/TestEmptySharedInodeVMObject.cpp @@ -30,7 +30,7 @@ TEST_CASE(shared_zero_length_inode_vmobject_sync) int rc = sigaction(SIGBUS, &new_action, nullptr); VERIFY(rc == 0); } - int fd = open("/tmp/shared_msync_test", O_RDWR | O_CREAT); + int fd = open("/tmp/shared_msync_test", O_RDWR | O_CREAT, 0644); VERIFY(fd >= 0); shared_ptr = (u8*)mmap(nullptr, 0x1000, PROT_READ | PROT_WRITE, MAP_FILE | MAP_SHARED, fd, 0); EXPECT(shared_ptr != MAP_FAILED); diff --git a/Tests/Kernel/TestPrivateInodeVMObject.cpp b/Tests/Kernel/TestPrivateInodeVMObject.cpp index f33a8bce07..b7a8dc77c9 100644 --- a/Tests/Kernel/TestPrivateInodeVMObject.cpp +++ b/Tests/Kernel/TestPrivateInodeVMObject.cpp @@ -36,7 +36,7 @@ TEST_CASE(private_non_empty_inode_vmobject_sync) } u8 buf[0x1000]; memset(buf, 0, sizeof(buf)); - int fd = open("/tmp/private_non_empty_msync_test", O_RDWR | O_CREAT); + int fd = open("/tmp/private_non_empty_msync_test", O_RDWR | O_CREAT, 0644); VERIFY(fd >= 0); auto rc = write(fd, buf, sizeof(buf)); VERIFY(rc == sizeof(buf)); diff --git a/Tests/Kernel/TestSharedInodeVMObject.cpp b/Tests/Kernel/TestSharedInodeVMObject.cpp index 716c17e23b..485824a0e5 100644 --- a/Tests/Kernel/TestSharedInodeVMObject.cpp +++ b/Tests/Kernel/TestSharedInodeVMObject.cpp @@ -36,7 +36,7 @@ TEST_CASE(shared_non_empty_inode_vmobject_sync) } u8 buf[0x1000]; memset(buf, 0, sizeof(buf)); - int fd = open("/tmp/shared_non_empty_msync_test", O_RDWR | O_CREAT); + int fd = open("/tmp/shared_non_empty_msync_test", O_RDWR | O_CREAT, 0644); VERIFY(fd >= 0); auto rc = write(fd, buf, sizeof(buf)); VERIFY(rc == sizeof(buf));