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);
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to