aboutsummaryrefslogtreecommitdiff
path: root/tests/sys
diff options
context:
space:
mode:
authorAlan Somers <asomers@FreeBSD.org>2020-08-11 01:09:06 +0000
committerAlan Somers <asomers@FreeBSD.org>2020-08-11 01:09:06 +0000
commit8d2105da1660dd79e4e287cb14c34651bc086bf9 (patch)
tree45ca0d4cea717d8d433a1c38814799d6b906e1ac /tests/sys
parent02511d2112f403ae8ff4a8ce31bf4e8c9e868137 (diff)
downloadsrc-8d2105da1660dd79e4e287cb14c34651bc086bf9.tar.gz
src-8d2105da1660dd79e4e287cb14c34651bc086bf9.zip
fusefs: fix the FUSE_FORGET unit test after r364064
Thanks to r364064, the name cache now returns a hit where previously it would miss. Adjust the expectations accordingly. PR: 248583 Reported by: lwhsu MFC with: r364064
Notes
Notes: svn path=/head/; revision=364094
Diffstat (limited to 'tests/sys')
-rw-r--r--tests/sys/fs/fusefs/forget.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/sys/fs/fusefs/forget.cc b/tests/sys/fs/fusefs/forget.cc
index 8a53ac0ecaa6..c138b7acc4aa 100644
--- a/tests/sys/fs/fusefs/forget.cc
+++ b/tests/sys/fs/fusefs/forget.cc
@@ -116,6 +116,7 @@ TEST_F(Forget, invalidate_names)
int err;
EXPECT_LOOKUP(FUSE_ROOT_ID, DNAME)
+ .Times(2)
.WillRepeatedly(Invoke(
ReturnImmediate([=](auto in __unused, auto& out) {
SET_OUT_HEADER_LEN(out, entry);
@@ -142,7 +143,7 @@ TEST_F(Forget, invalidate_names)
out.body.entry.attr_valid = UINT64_MAX;
out.body.entry.entry_valid = UINT64_MAX;
})));
- expect_forget(dir_ino, 2);
+ expect_forget(dir_ino, 1);
/* Access the file to cache its name */
ASSERT_EQ(0, access(FULLFPATH, F_OK)) << strerror(errno);