summaryrefslogtreecommitdiffhomepage
path: root/test/syscalls/linux
diff options
context:
space:
mode:
authorNicolas Lacasse <nlacasse@google.com>2019-03-04 16:56:11 -0800
committerShentubot <shentubot@google.com>2019-03-04 16:57:14 -0800
commit0d683c9961a6d39d06896a230b8d52edfcf6e0cc (patch)
tree9ecef3b8060465fc58cb8c6ee15f0e6148745246 /test/syscalls/linux
parent662da3350cbf00f51c5a1dc7396910106c2555b8 (diff)
Make tmpfs respect MountNoATime now that fs.Handle is gone.
PiperOrigin-RevId: 236752802 Change-Id: I9e50600b2ae25d5f2ac632c4405a7a185bdc3c92
Diffstat (limited to 'test/syscalls/linux')
-rw-r--r--test/syscalls/linux/mount.cc4
1 files changed, 1 insertions, 3 deletions
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<absl::Time> 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());