summaryrefslogtreecommitdiffhomepage
path: root/test/syscalls
diff options
context:
space:
mode:
authorRahat Mahmood <rahat@google.com>2020-07-27 13:19:25 -0700
committergVisor bot <gvisor-bot@google.com>2020-07-27 13:26:23 -0700
commitc8fa685cb6b562e4d8fc05c7d01968e4e12234aa (patch)
tree9ef3c8a44dbedd648d925b257eb2481a3e738e4c /test/syscalls
parentc40a3304e43407880c0e0a057e63baa0c4b495f2 (diff)
Fix when FUSE tests need to be skipped due to sentry configuration.
PiperOrigin-RevId: 323426851
Diffstat (limited to 'test/syscalls')
-rw-r--r--test/syscalls/linux/mount.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/test/syscalls/linux/mount.cc b/test/syscalls/linux/mount.cc
index 7664fa73d..97e8d0f7e 100644
--- a/test/syscalls/linux/mount.cc
+++ b/test/syscalls/linux/mount.cc
@@ -323,10 +323,7 @@ TEST(MountTest, RenameRemoveMountPoint) {
TEST(MountTest, MountFuseFilesystemNoDevice) {
SKIP_IF(!ASSERT_NO_ERRNO_AND_VALUE(HaveCapability(CAP_SYS_ADMIN)));
-
- // Note(gvisor.dev/issue/3076) This won't work in the sentry until the new
- // device registration is complete.
- SKIP_IF(IsRunningWithVFS1() || IsRunningOnGvisor());
+ SKIP_IF(IsRunningOnGvisor() && !IsFUSEEnabled());
auto const dir = ASSERT_NO_ERRNO_AND_VALUE(TempPath::CreateDir());
EXPECT_THAT(mount("", dir.path().c_str(), "fuse", 0, ""),
@@ -335,10 +332,7 @@ TEST(MountTest, MountFuseFilesystemNoDevice) {
TEST(MountTest, MountFuseFilesystem) {
SKIP_IF(!ASSERT_NO_ERRNO_AND_VALUE(HaveCapability(CAP_SYS_ADMIN)));
-
- // Note(gvisor.dev/issue/3076) This won't work in the sentry until the new
- // device registration is complete.
- SKIP_IF(IsRunningWithVFS1() || IsRunningOnGvisor());
+ SKIP_IF(IsRunningOnGvisor() && !IsFUSEEnabled());
const FileDescriptor fd =
ASSERT_NO_ERRNO_AND_VALUE(Open("/dev/fuse", O_WRONLY));