diff options
author | Fabricio Voznika <fvoznika@google.com> | 2019-01-24 14:19:07 -0800 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-01-24 14:20:16 -0800 |
commit | 01679f3b5ab957c274690a62f0fce5d332ee94af (patch) | |
tree | d8379c22c1a4df03c096984eb2cfe0b3c5582311 /test/syscalls/linux/inotify.cc | |
parent | 79e0451bd11645b0dff34c3a6c6131ed68c822f7 (diff) |
Increase gofer coverage in tests
Lots of tests use /tmp for the tests. Force /tmp to be
mounted over fsgofer instead of tmpfs.
PiperOrigin-RevId: 230788985
Change-Id: Id6597ed88133232d15e808c48126bf77cb32673e
Diffstat (limited to 'test/syscalls/linux/inotify.cc')
-rw-r--r-- | test/syscalls/linux/inotify.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/syscalls/linux/inotify.cc b/test/syscalls/linux/inotify.cc index 167ca44a8..5c66db7c8 100644 --- a/test/syscalls/linux/inotify.cc +++ b/test/syscalls/linux/inotify.cc @@ -1222,7 +1222,8 @@ TEST(Inotify, LinkGeneratesAttribAndCreateEvents) { const int rc = link(file1.path().c_str(), link1.path().c_str()); // link(2) is only supported on tmpfs in the sandbox. - SKIP_IF(IsRunningOnGvisor() && rc != 0 && errno == EPERM); + SKIP_IF(IsRunningOnGvisor() && rc != 0 && + (errno == EPERM || errno == ENOENT)); ASSERT_THAT(rc, SyscallSucceeds()); const std::vector<Event> events = @@ -1238,7 +1239,8 @@ TEST(Inotify, HardlinksReuseSameWatch) { TempPath link1(root.path() + "/link1"); const int rc = link(file1.path().c_str(), link1.path().c_str()); // link(2) is only supported on tmpfs in the sandbox. - SKIP_IF(IsRunningOnGvisor() && rc != 0 && errno == EPERM); + SKIP_IF(IsRunningOnGvisor() && rc != 0 && + (errno == EPERM || errno == ENOENT)); ASSERT_THAT(rc, SyscallSucceeds()); const FileDescriptor fd = |