mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Internal change.
PiperOrigin-RevId: 294250370
This commit is contained in:
committed by
gVisor bot
parent
724bafa094
commit
75412ed9f5
@@ -1055,9 +1055,9 @@ TEST(Inotify, ChmodGeneratesAttribEvent_NoRandomSave) {
|
||||
const TempPath file1 =
|
||||
ASSERT_NO_ERRNO_AND_VALUE(TempPath::CreateFileIn(root.path()));
|
||||
|
||||
const FileDescriptor root_fd =
|
||||
FileDescriptor root_fd =
|
||||
ASSERT_NO_ERRNO_AND_VALUE(Open(root.path(), O_RDONLY));
|
||||
const FileDescriptor file1_fd =
|
||||
FileDescriptor file1_fd =
|
||||
ASSERT_NO_ERRNO_AND_VALUE(Open(file1.path(), O_RDWR));
|
||||
FileDescriptor fd = ASSERT_NO_ERRNO_AND_VALUE(InotifyInit1(IN_NONBLOCK));
|
||||
|
||||
@@ -1091,6 +1091,11 @@ TEST(Inotify, ChmodGeneratesAttribEvent_NoRandomSave) {
|
||||
ASSERT_THAT(fchmodat(root_fd.get(), file1_basename.c_str(), S_IWGRP, 0),
|
||||
SyscallSucceeds());
|
||||
verify_chmod_events();
|
||||
|
||||
// Make sure the chmod'ed file descriptors are destroyed before DisableSave
|
||||
// is destructed.
|
||||
root_fd.reset();
|
||||
file1_fd.reset();
|
||||
}
|
||||
|
||||
TEST(Inotify, TruncateGeneratesModifyEvent) {
|
||||
|
||||
Reference in New Issue
Block a user