mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
fusefs: remove an obsolete fifo test
This should've been part of r346868 Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
f9b0e30ba7
commit
8acfadfa02
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/projects/fuse2/; revision=346893
@ -138,26 +138,6 @@ TEST_F(Open, eperm)
|
||||
EXPECT_EQ(EPERM, errno);
|
||||
}
|
||||
|
||||
/* fusefs(5) does not yet support I/O on fifos. But it shouldn't crash. */
|
||||
TEST_F(Open, fifo)
|
||||
{
|
||||
const char FULLPATH[] = "mountpoint/zero";
|
||||
const char RELPATH[] = "zero";
|
||||
uint64_t ino = 42;
|
||||
|
||||
EXPECT_LOOKUP(1, RELPATH)
|
||||
.WillRepeatedly(Invoke(ReturnImmediate([=](auto in __unused, auto out) {
|
||||
SET_OUT_HEADER_LEN(out, entry);
|
||||
out->body.entry.attr.mode = S_IFIFO | 0644;
|
||||
out->body.entry.nodeid = ino;
|
||||
out->body.entry.attr.nlink = 1;
|
||||
out->body.entry.attr_valid = UINT64_MAX;
|
||||
})));
|
||||
|
||||
ASSERT_EQ(-1, open(FULLPATH, O_RDONLY));
|
||||
EXPECT_EQ(EOPNOTSUPP, errno);
|
||||
}
|
||||
|
||||
/*
|
||||
* fusefs must issue multiple FUSE_OPEN operations if clients with different
|
||||
* credentials open the same file, even if they use the same mode. This is
|
||||
|
Loading…
Reference in New Issue
Block a user