Date: Tue, 11 Aug 2020 01:09:06 +0000 (UTC) From: Alan Somers <asomers@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r364094 - head/tests/sys/fs/fusefs Message-ID: <202008110109.07B196gc034654@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: asomers Date: Tue Aug 11 01:09:06 2020 New Revision: 364094 URL: https://svnweb.freebsd.org/changeset/base/364094 Log: 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 Modified: head/tests/sys/fs/fusefs/forget.cc Modified: head/tests/sys/fs/fusefs/forget.cc ============================================================================== --- head/tests/sys/fs/fusefs/forget.cc Tue Aug 11 00:41:48 2020 (r364093) +++ head/tests/sys/fs/fusefs/forget.cc Tue Aug 11 01:09:06 2020 (r364094) @@ -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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008110109.07B196gc034654>