summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-06-26 11:37:23 -0700
committergVisor bot <gvisor-bot@google.com>2020-06-26 11:37:23 -0700
commitcfd049da87f1a8ce5b9b20c65ab5ccd84cdaf3f1 (patch)
treedc75336ed03e9c37c04b6e9e9049a0b95ccf947e /test
parent47ac142dc9b440c90cdc037c77ab80c47263f9e2 (diff)
parent2828806fb015bbbec0f4a48670d1eb048f21099a (diff)
Merge pull request #2931 from ridwanmsharif:ridwanmsharif/fuse-char-device
PiperOrigin-RevId: 318511615
Diffstat (limited to 'test')
-rw-r--r--test/syscalls/linux/dev.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/syscalls/linux/dev.cc b/test/syscalls/linux/dev.cc
index 4dd302eed..3c88c4cbd 100644
--- a/test/syscalls/linux/dev.cc
+++ b/test/syscalls/linux/dev.cc
@@ -153,6 +153,14 @@ TEST(DevTest, TTYExists) {
EXPECT_EQ(statbuf.st_mode, S_IFCHR | 0666);
}
+TEST(DevTest, OpenDevFuse) {
+ // Note(gvisor.dev/issue/3076) This won't work in the sentry until the new
+ // device registration is complete.
+ SKIP_IF(IsRunningWithVFS1() || IsRunningOnGvisor());
+
+ ASSERT_NO_ERRNO_AND_VALUE(Open("/dev/fuse", O_RDONLY));
+}
+
} // namespace
} // namespace testing