From 0d683c9961a6d39d06896a230b8d52edfcf6e0cc Mon Sep 17 00:00:00 2001 From: Nicolas Lacasse Date: Mon, 4 Mar 2019 16:56:11 -0800 Subject: Make tmpfs respect MountNoATime now that fs.Handle is gone. PiperOrigin-RevId: 236752802 Change-Id: I9e50600b2ae25d5f2ac632c4405a7a185bdc3c92 --- test/syscalls/linux/mount.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test') diff --git a/test/syscalls/linux/mount.cc b/test/syscalls/linux/mount.cc index 76da8b75a..6bb4287a3 100644 --- a/test/syscalls/linux/mount.cc +++ b/test/syscalls/linux/mount.cc @@ -250,9 +250,7 @@ PosixErrorOr ATime(absl::string_view file) { return absl::TimeFromTimespec(s.st_atim); } -// FIXME: Disabled until tmpfs stops using Handle, as only the gofer -// and host file system respect the MS_NOATIME flag. -TEST(MountTest, DISABLED_MountNoAtime) { +TEST(MountTest, MountNoAtime) { SKIP_IF(!ASSERT_NO_ERRNO_AND_VALUE(HaveCapability(CAP_SYS_ADMIN))); auto const dir = ASSERT_NO_ERRNO_AND_VALUE(TempPath::CreateDir()); -- cgit v1.2.3